GdPicture.NET Reference Guide
BarcodeQRReaderGetBarcodeValue Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : BarcodeQRReaderGetBarcodeValue Method
Barcode index. Must be between 1 and BarcodeQRReaderGetBarcodeCount returned value.
Returns the value of a barcode detected by the BarcodeQRReaderDoScan method.
Syntax
'Declaration
 
Public Function BarcodeQRReaderGetBarcodeValue( _
   ByVal BarcodeNo As Integer _
) As String
public string BarcodeQRReaderGetBarcodeValue( 
   int BarcodeNo
)
public function BarcodeQRReaderGetBarcodeValue( 
    BarcodeNo: Integer
): String; 
public function BarcodeQRReaderGetBarcodeValue( 
   BarcodeNo : int
) : String;
public: string* BarcodeQRReaderGetBarcodeValue( 
   int BarcodeNo
) 
public:
String^ BarcodeQRReaderGetBarcodeValue( 
   int BarcodeNo
) 

Parameters

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

Return Value

The barcode data.
Remarks

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))
         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