Softek Software Barcode Reading Toolkits
HOME PRODUCTS DEVELOPERS STORE ABOUT US
Developer Home
Downloads
Sample Code
Support

Help -> Properties -> ScanDirection

The Softek Barcode Reader SDK extracts barcode information from images and bitmaps.

ScanDirection 

Overview

ScanDirection is a mask that controls the directions in which the barcode reader will look for barcodes in an image, and is built from the following values:

  • 1 = Left to Right
  • 2 = Top to Bottom
  • 4 = Right To Left
  • 8 = Bottom to Top

For example, a value of 5 (1 + 4) means that the reader will look for barcode from left to right and right to left.

Note: This property replaces the Rotation property used in previous versions.   

Default value =    15

Visual Basic using the OCX

[form.]SoftekBarcode.ScanDirection = value

Visual Basic using the DLL

Private Declare Function stGetScanDirection Lib "SoftekBarcode" () As Short
Private Declare Function stSetScanDirection Lib "SoftekBarcode" (ByVal newValue As Short) As Short
stSetScanDirection (value) value = stGetScanDirection ()

Visual Basic using COM

oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.ScanDirection = value
value = oBar.ScanDirection

VB.Net using the DLL

Private Declare Function stGetScanDirection Lib "SoftekBarcode" () As Short
Private Declare Function stSetScanDirection Lib "SoftekBarcode" (ByVal newValue As Short) As Short
stSetScanDirection (value) value = stGetScanDirection ()

VB.Net using the SoftekBarcode Wrapper Class

Dim barcode As SoftekBarcode
..........
barcode.SetScanDirection(value)
value = barcode.GetScanDirection()

VB.Net using the SoftekBarcodeLib Managed Component

Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Long
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.ScanDirection = value
value = barcode.ScanDirection

Visual C++ Using the OCX

BOOL GetScanDirection() ;
void SetScanDirection(short value) ;

Visual C++ Using the DLL

BOOL __stdcall stGetScanDirection();
BOOL __stdcall stSetScanDirection(short bNewValue);