See Also Examples Applies To
Returns the orientation of a bar code found on the last acquired image.
Syntax
object.TwainBarCodeGetRotation (nBarCodeNo)
The TwainBarCodeGetRotation syntax has these parts:
| Part | Description |
| object | Required. An object expression that evaluates to an object in the Applies To list. |
| nBarCodeNo | Required. Long. The barcode number. Must be value between 1 and the number of detected barcodes. |
Returns
Long. The barcode rotation. Can be:
TWBCOR_ROT0 = 0 Normal reading orientation.
TWBCOR_ROT90 = 1 Rotated 90 degrees clockwise.
TWBCOR_ROT180 = 2 Rotated 180 degrees clockwise.
TWBCOR_ROT270 = 3 Rotated 270 degrees clockwise.
TWBCOR_ROTX = 4 The orientation is not known.
Remarks
Before using this function make sure that the barcode detection was enabled by the TwainSetBarcodeDetection() function.
Use the TwainBarCodeGetCount() function to determine how many barcodes have been detected on the last acquired image.
Category
TWAIN Functions