Huge Collections of Software Manuals and Knowledgebase

GreatManuals.com
Huge Collections of Software Manuals and Knowledgebase

 
Home Contact us Request to publish your help manuals Request to remove your help manuals

Introduction
 » Softek Barcode Reader
Barcode Toolkit Overview
 » Toolkit Interfaces
 » Supported Barcode Types
 » Program Sequence
 » Performance Considerations
Barcode Toolkit Examples
 » Visual Basic Using DLL
 » Visual Basic Using OCX
 » VB.Net
 » Borland Delphi
Methods
 » Methods
 » GetBarString
 » GetBarStringPos & GetBarStringRect
 » GetBarStringType
 » GetBarStringDirection
 » ScanBarCode
 » ScanBarCodeFromBitmap
 » ScanBarCodeFromDIB
 » SetScanRect
Properties
 » Properties
 » AllowDuplicateValues
 » BitmapResolution
 » Code39Checksum
 » ColorThreshold
 » ConvertUPCEToEAN13
 » LineJump
 » ErrorCorrection
 » ExtendedCode39
 » MaxLength
 » MinLength
 » MinOccurrence
 » MinSpaceBarWidth
 » MultipleRead
 » NoiseReduction
 » PageNo
 » Pattern
 » PdfBpp
 » PdfDpi
 » Photometric
 » PrefOccurrence
 » QuietZoneSize
 » ReadCodabar
 » ReadCode128
 » ReadCode25
 » ReadCode25ni
 » ReadCode39
 » ReadEAN13
 » ReadEAN8
 » ReadUPCA
 » ReadUPCE
 » ReadPatchCodes
 » ReadPDF417
 » ReadNumeric
 » ScanDirection
 » ShowCheckDigit
 » SkewTolerance
 » TifSplitMode
 » TifSplitPath
 » UseOverSampling
 

SetScanRect

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)

Barcode Generator Bookkeeping software Barcode software
Business financial software Billing software Accounting software

 

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);

Home | Contact us | Request to publish your help manuals | Request to remove your help manuals