GdPicture.NET Reference Guide
BarcodeQRReaderGetBarcodeValueRAW Method
Example 





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

Parameters

BarcodeNo
Barcode index. Must be between 1 and BarcodeQRReaderGetBarcodeCount 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 QR 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.BarcodeQRReaderDoScan(ImageID) = GdPictureStatus.OK Then 'Start QR barcode scanning process
      Dim BarcodeCount As Integer = oGdPictureImaging.BarcodeQRReaderGetBarcodeCount
      If BarcodeCount > 0 Then
         For i As Integer = 1 To BarcodeCount
            MessageBox.show("Barcode No: " & Str(i))
            MessageBox.show("Value: " & oGdPictureImaging.BarcodeQRReaderGetBarcodeValue(i))
            MessageBox.show("Rows: " & Str(oGdPictureImaging.BarcodeQRReaderGetBarcodeRows(i)))
            MessageBox.show("Columns: " & Str(oGdPictureImaging.BarcodeQRReaderGetBarcodeColumns(i)))
         Next
      Else
         MessageBox.show("No barcode detected !")
      End If
      oGdPictureImaging.BarcodeQRReaderClear() 'Release detection info from memory
   End If
   oGdPictureImaging.ReleaseGdPictureImage(ImageID)
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members