Overview
SkewTolerance controls the maximum angle from the horizontal or vertical at which a barcode will be recognised by the toolkit. The table below shows the possible values for this property along with the approximate maximum angles:
- 0 = up to 5 degrees
- 1 = 13 degrees
- 2 = 21 degrees
- 3 = 29 degrees
- 4 = 37 degrees
- 5 = 45 degrees
Default value = 0
Visual Basic using the OCX
[form.]SoftekBarcode.SkewTolerance = value
Visual Basic using the DLL
Private Declare Function stGetSkewTolerance Lib "SoftekBarcode" () As Short
Private Declare Function stSetSkewTolerance Lib "SoftekBarcode" (ByVal newValue As Short) As Short
stSetSkewTolerance (value) value = stGetSkewTolerance ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.SkewTolerance = value
value = oBar.SkewTolerance
VB.Net using the DLL
Private Declare Function stGetSkewTolerance Lib "SoftekBarcode" () As Short
Private Declare Function stSetSkewTolerance Lib "SoftekBarcode" (ByVal newValue As Short) As Short
stSetSkewTolerance (value) value = stGetSkewTolerance ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetSkewTolerance(value)
value = barcode.GetSkewTolerance()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Long
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.SkewTolerance = value
value = barcode.SkewTolerance
Visual C++ Using the OCX
BOOL GetSkewTolerance() ;
void SetSkewTolerance(short value) ;
Visual C++ Using the DLL
BOOL __stdcall stGetSkewTolerance();
BOOL __stdcall stSetSkewTolerance(short bNewValue);



