GdPicture.NET Reference Guide
BarcodeDataMatrixReaderGetBarcodeRows Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : BarcodeDataMatrixReaderGetBarcodeRows Method
Barcode index. Must be between 1 and BarcodeDataMatrixReaderGetBarcodeCount returned value.
Returns the number of rows of a barcode detected by the BarcodeDataMatrixReaderDoScan method.
Syntax
'Declaration
 
Public Function BarcodeDataMatrixReaderGetBarcodeRows( _
   ByVal BarcodeNo As Integer _
) As Integer
public int BarcodeDataMatrixReaderGetBarcodeRows( 
   int BarcodeNo
)
public function BarcodeDataMatrixReaderGetBarcodeRows( 
    BarcodeNo: Integer
): Integer; 
public function BarcodeDataMatrixReaderGetBarcodeRows( 
   BarcodeNo : int
) : int;
public: int BarcodeDataMatrixReaderGetBarcodeRows( 
   int BarcodeNo
) 
public:
int BarcodeDataMatrixReaderGetBarcodeRows( 
   int BarcodeNo
) 

Parameters

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

Return Value

The number of rows of the barcode.
Remarks

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

Example
Detecting all DataMatrixs barcode in an image
Dim oGdPictureImaging As New GdPicture.GdPictureImaging
Dim ImageID As Integer
ImageID = oGdPictureImaging.CreateGdPictureImageFromFile("") 'Prompt the user to select an image
If imageId <> 0 Then
   If oGdPictureImaging.BarcodeDataMatrixReaderDoScan(ImageID) = GdPictureStatus.OK Then 'Start DataMatrix barcode scanning process
      Dim BarcodeCount As Integer = oGdPictureImaging.BarcodeDataMatrixReaderGetBarcodeCount
      If BarcodeCount > 0 Then
         For i As Integer = 1 To BarcodeCount
            MessageBox.show("Barcode No: " & Str(i))
            MessageBox.show("Value: " & oGdPictureImaging.BarcodeDataMatrixReaderGetBarcodeValue(i))
            MessageBox.show("Rows: " & Str(oGdPictureImaging.BarcodeDataMatrixReaderGetBarcodeRows(i)))
            MessageBox.show("Columns: " & Str(oGdPictureImaging.BarcodeDataMatrixReaderGetBarcodeColumns(i)))
            MessageBox.show("Columns: " & Str(oGdPictureImaging.BarcodeDataMatrixReaderGetBarcodeSkewAngle(i)))
         Next
      Else
         MessageBox.show("No barcode detected !")
      End If
      oGdPictureImaging.BarcodeDataMatrixReaderClear() 'Release detection info from memory
   End If
   oGdPictureImaging.ReleaseGdPictureImage(ImageID)
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members