Overview
SetScanRect(TopLeftX, TopLeftY, BottomRightX, BottomRightY, nMappingMode)
SetScanRect specifies the bounding rectangle in the image that should be searched for barcodes. To clear the rectangle and search the entire image set the rectangle to (-1, -1, -1, -1). The top left hand corner of an image is (0,0).
nMappingMode can have the following values:
- 0 = All measurements are in pixels.
- 1 = All measurements are a percentage of the width or height of the image.
Visual Basic using the OCX
[form.]SoftekBarcode.SetScanRect(TopLeftX, TopLeftY, BottomRightX, BottomRightY, nMappingMode)
Visual Basic using the DLL
Private Declare Function stSetScanRect Lib "SoftekBarcode" (ByVal TopLeftX As Long, ByVal TopLeftY As Long, ByVal BottomRightX As Long, ByVal BottomRightY As Long, ByVal nMappingMode As Integer) As Bool
stSetScanRect(TopLeftX, TopLeftY, BottomRightX, BottomRightY, nMappingMode)
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.SetScanRect (TopLeftX, TopLeftY, BottomRightX, BottomRightY, nMappingMode)
VB.Net using the DLL
Private Declare Function stSetScanRect Lib "SoftekBarcode" (ByVal TopLeftX As Long, ByVal TopLeftY As Long, ByVal BottomRightX As Long, ByVal BottomRightY As Long, ByVal nMappingMode As Integer) As Bool
stSetScanRect(TopLeftX, TopLeftY, BottomRightX, BottomRightY, nMappingMode)
strBarType = stGetBarStringType(n)
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetScanRect (TopLeftX, TopLeftY, BottomRightX, BottomRightY, nMappingMode)
VB.Net using the SoftekBarcodeLib Managed Component
Not implemented yet.
Visual C++ Using the OCX
short SetScanRect(long TopLeftX, long TopLeftY, long BottomRightX, long BottomRightY, long nMappingMode);
Visual C++ Using the DLL
BOOL __stdcall stSetScanRect(long TopLeftX, long TopLeftY, long BottomRightX, long BottomRightY, short nMappingMode);



