GdPicture.NET Reference Guide
BarcodePDF417ReaderGetBarcodeCount Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : BarcodePDF417ReaderGetBarcodeCount Method
Returns the number of barcode detected by the BarcodePDF417ReaderDoScan method.
Syntax
'Declaration
 
Public Function BarcodePDF417ReaderGetBarcodeCount() As Integer
public int BarcodePDF417ReaderGetBarcodeCount()
public function BarcodePDF417ReaderGetBarcodeCount(): Integer; 
public function BarcodePDF417ReaderGetBarcodeCount() : int;
public: int BarcodePDF417ReaderGetBarcodeCount(); 
public:
int BarcodePDF417ReaderGetBarcodeCount(); 

Return Value

The number of barcode detected.
Remarks

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

Example
Detecting all PDF417 barcodes in an image.
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.BarcodePDF417ReaderDoScan(ImageID) = GdPictureStatus.OK Then 'Start PDF417 barcode scanning process
      Dim BarcodeCount As Integer = oGdPictureImaging.BarcodePDF417ReaderGetBarcodeCount
      If BarcodeCount > 0 Then
         For i As Integer = 1 To BarcodeCount
            MessageBox.show("Barcode No: " & Str(i))
            MessageBox.show("Value: " & oGdPictureImaging.BarcodePDF417ReaderGetBarcodeValue(i))
            MessageBox.show("Rows: " & Str(oGdPictureImaging.BarcodePDF417ReaderGetBarcodeRows(i)))
            MessageBox.show("Columns: " & Str(oGdPictureImaging.BarcodePDF417ReaderGetBarcodeColumns(i)))
         Next
      Else
         MessageBox.show("No barcode detected !")
      End If
      oGdPictureImaging.BarcodePDF417ReaderClear() 'Release detection info from memory
   End If
   oGdPictureImaging.ReleaseGdPictureImage(ImageID)
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members