bardecode.com
barcode reading software
  • Home
  • Download
  • Purchase
  • SDK Licensing
  • Pricing
    • Windows SDK Price List
    • Windows SDK with PDF Extension Price List
    • Linux SDK Price List
    • Linux SDK with PDF Extension Price List
    • PDF Extension For Windows Price List
    • Multi-Platform Toolkit for .NET Price List
    • BardecodeFiler Desktop Only Price List
    • BardecodeFiler Windows Service Price List
    • DOS Command Prompt Barcode Tool Price List
    • Terms and Conditions
    • Refund Policy
  • Products
    • Softek Barcode Reader Toolkit for Windows
    • Softek Barcode Reader Toolkit for Linux
    • BardecodeFiler Desktop App
    • BardecodeFiler Windows Service
    • Windows DOS Command Prompt Tool
    • Multi-platform barcode reader toolkit for .NET
    • Aquaforest’s Autobahn DX
  • Knowledge Base
    • Documentation
    • Specifications
  • News
  • Contact
    • About Us
    • Terms and Conditions
    • Resellers
    • Links
Select Page ...

News

SetScanRect - specify the rectangle to search within an image

admin October 26, 2009 Documentation, Knowledge Base No Comments

Syntax

 

.net/com/java/ocx: SetScanRect(tlx, tly, brx, bry, mode)
dll: mtSetScanRect(hBarcode, tlx, tly, brx, bry, mode)

Parameters

hBarcode Handle to an instance of the barcode toolkit (dll only).
tlx x coordinate of top left hand corner
tly y coordinate of top left hand corner
brx x coordinate of bottom right hand corner
bry y coordinate of bottom right hand corner
mode mapping mode (see below)

Return Value

1/True on success and 0/False on failure.

Remarks

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

The mapping mode 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.

Win32 dll declarations:

VB.Net:

Private Declare Function mtSetScanRect Lib “SoftekBarcode” (ByVal hBarcode As System.IntPtr, ByVal TopLeftX As Integer, ByVal TopLeftY As Integer, ByVal BottomRightX As Integer, ByVal BottomRightY As Integer, ByVal MappingMode As Short) As Boolean

 

Visual C++:

extern “C” {
BOOL __stdcall mtSetScanRect(HANDLE hBarcode, long TopLeftX, long TopLeftY, long BottomRightX, long BottomRightY, short MappingMode);

}


 

← Version 7.2.1 of the toolkit released
ScanBarCodeFromDIB – scan a DIB for barcodes →
admin

  • Copyright © 2023 Softek Software Ltd. All Rights Reserved