GdPicture.NET Reference Guide
BarcodePDF417ReaderGetBarcodeValueRAW Method
Example 





GdPicture14 Namespace > GdPictureImaging Class : BarcodePDF417ReaderGetBarcodeValueRAW Method
Barcode index. Must be between 1 and BarcodePDF417ReaderGetBarcodeCount returned value.
Returns the value, as RAW Bytes, of a barcode detected by the BarcodePDF417ReaderDoScan method.
Syntax
'Declaration
 
Public Function BarcodePDF417ReaderGetBarcodeValueRAW( _
   ByVal BarcodeNo As Integer _
) As Byte()
public byte[] BarcodePDF417ReaderGetBarcodeValueRAW( 
   int BarcodeNo
)
public function BarcodePDF417ReaderGetBarcodeValueRAW( 
    BarcodeNo: Integer
): array of Byte; 
public function BarcodePDF417ReaderGetBarcodeValueRAW( 
   BarcodeNo : int
) : byte[];
public: byte[]* BarcodePDF417ReaderGetBarcodeValueRAW( 
   int BarcodeNo
) 
public:
array<byte>^ BarcodePDF417ReaderGetBarcodeValueRAW( 
   int BarcodeNo
) 

Parameters

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

Return Value

The barcode data.
Remarks

Use the GetStat() method to check if this method has completed successfully.

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