GdPicture.NET Reference Guide
Barcode1DReaderBarcodeHasChecksum Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : Barcode1DReaderBarcodeHasChecksum Method
Barcode index. Must be between 1 and Barcode1DReaderGetBarcodeCount returned value.
Returns if a barcode detected by the Barcode1DReaderDoScan method has a checksum.
Syntax
'Declaration
 
Public Function Barcode1DReaderBarcodeHasChecksum( _
   ByVal BarcodeNo As Integer _
) As Boolean
public bool Barcode1DReaderBarcodeHasChecksum( 
   int BarcodeNo
)
public function Barcode1DReaderBarcodeHasChecksum( 
    BarcodeNo: Integer
): Boolean; 
public function Barcode1DReaderBarcodeHasChecksum( 
   BarcodeNo : int
) : boolean;
public: bool Barcode1DReaderBarcodeHasChecksum( 
   int BarcodeNo
) 
public:
bool Barcode1DReaderBarcodeHasChecksum( 
   int BarcodeNo
) 

Parameters

BarcodeNo
Barcode index. Must be between 1 and Barcode1DReaderGetBarcodeCount returned value.

Return Value

True if the barcode has a checksum else False.
Remarks

This method is used in the "Barcode Recognition" Demo.

Example
Detecting all barcodes in an image, yet displaying the information of only those that have a CheckSum.
Dim oGdPictureImaging As New GdPicture.GdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("") 'Prompt the user to select an image
If imageId <> 0 Then
   If oGdPictureImaging.Barcode1DReaderDoScan(ImageID) = GdPictureStatus.OK Then 'Start barcode scanning process
      Dim BarcodeCount As Integer = oGdPictureImaging.Barcode1DReaderGetBarcodeCount()
      If BarcodeCount > 0 Then
         For i As Integer = 1 To BarcodeCount
            If oGdPictureImaging.Barcode1DReaderBarcodeHasChecksum(i) Then
               MessageBox.show("Barcode No: " & Str(i))
               MessageBox.show("Type: " & oGdPictureImaging.Barcode1DReaderGetBarcodeType(i).ToString())
               MessageBox.show("Value: " & oGdPictureImaging.Barcode1DReaderGetBarcodeValue(i))
               MessageBox.show("Angle: " & oGdPictureImaging.Barcode1DReaderGetBarcodeSkewAngle(i).ToString())
            End If
         Next
      Else
         MessageBox.show("No barcode detected !")
      End If
      oGdPictureImaging.Barcode1DReaderClear() 'Release detection info from memory
   End If
   oGdPictureImaging.ReleaseGdPictureImage(ImageID)
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members