GdPicture.NET Reference Guide
BarcodePDF417ReaderGetBarcodeValue Method (GdPictureImaging)
Example 





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

Parameters

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

Return Value

The barcode data.
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: " & oGdPictureImaging.BarcodePDF417ReaderGetBarcodeRows(i).ToString())
            MessageBox.show("Columns: " & oGdPictureImaging.BarcodePDF417ReaderGetBarcodeColumns(i).ToString())
            MessageBox.show("Angle: " & oGdPictureImaging.BarcodePDF417ReaderGetBarcodeSkewAngle(i).ToString())
            MessageBox.show("Confidence: " & oGdPictureImaging.BarcodePDF417ReaderGetBarcodeConfidence(i).ToString())
         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