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

Overview

 

GetBarStringDirection(n)

GetBarStringDirection returns the scan direction of the nth barcode (indexed from 1) found in the image and can be one of the following values:

  • 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 

 

Visual Basic using the OCX

[form.]SoftekBarcode.GetBarStringDirection (n) 

Visual Basic using the DLL

Private Declare Function stGetBarStringDirection Lib "SoftekBarcode" (ByVal nBarCode As Integer) As Integer

iBarDirection = stGetBarStringPos(n)

Visual Basic using COM

oBar = CreateObject("SoftekATL.Barcode")
.........
iBarDirection = oBar.GetBarStringDirection (n) 

VB.Net using the DLL

Private Declare Function stGetBarStringDirection Lib "SoftekBarcode" (ByVal nBarCode As Short) As Integer

iBarDirection = stGetBarStringDirection(n)

VB.Net using the SoftekBarcode Wrapper Class

Dim barcode As SoftekBarcode

..........
iBarDirection = barcode.GetBarStringDirection(n)

VB.Net using the SoftekBarcodeLib Managed Component

Dim barcode As SoftekBarcodeLib.BarcodeReader
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.GetBarStringDirection(n)

Visual C++ Using the OCX

short GetBarStringDirection (short n);

Visual C++ Using the DLL

short __stdcall stGetBarStringDirection(short index);