bardecode.com

  • Increase font size
  • Default font size
  • Decrease font size
Home Documentation GetBarStringDirection - retrieve the orientation of a barcode

GetBarStringDirection - retrieve the orientation of a barcode

Syntax

.net/java/ocx: Object.GetBarStringDirection(n)
com: Object.BarStringDirection(n) 
dll: mtGetBarStringDirection(hBarcode, n)

Parameters

hBarcode Handle to an instance of the barcode toolkit (dll only).
n 1-based index to barcode to be queried.

Return Value

1 = Left to Right

2 = Top to Bottom

4 = Right to Left

8 = Bottom to Top

16 = Top Left to Bottom Right

32 = Top Right to Bottom Left

64 = Bottom Right to Top Left

128 = Bottom Left to Top Right

Remarks:

Call GetBarStringDirection after calling ScanBarCode to determine the orientations of barcode found in a document.

Win32 dll declarations:

VB.Net:

Private Declare Function mtGetBarStringDirection Lib "SoftekBarcode" (ByVal hBarcode As System.IntPtr, ByVal nBarCode As Short) As Short


Visual C++:

extern "C" {
short __stdcall mtGetBarStringDirection(HANDLE hBarcode, short nBarCode) ;

}