GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / TwainBarCodeGetXPos Method
The barcode number. Must be value between 1 and the number of detected barcodes.





In This Topic
TwainBarCodeGetXPos Method (GdPictureImaging)
In This Topic
Returns the X coordinate of a bar code found on the last acquired image.
Syntax
'Declaration
 
Public Function TwainBarCodeGetXPos( _
   ByVal BarCodeNo As Integer _
) As Integer
public int TwainBarCodeGetXPos( 
   int BarCodeNo
)
public function TwainBarCodeGetXPos( 
    BarCodeNo: Integer
): Integer; 
public function TwainBarCodeGetXPos( 
   BarCodeNo : int
) : int;
public: int TwainBarCodeGetXPos( 
   int BarCodeNo
) 
public:
int TwainBarCodeGetXPos( 
   int BarCodeNo
) 

Parameters

BarCodeNo
The barcode number. Must be value between 1 and the number of detected barcodes.

Return Value

The barcode X coordinate. Return -1 if current source does not support X coordinate reporting.
Remarks
Before using this method make sure that the barcode detection was enabled by the TwainSetBarcodeDetection() method. Use the TwainBarCodeGetCount() method to determine how many barcodes have been detected on the last acquired image.
See Also