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

ScanBarCodeFromDIB - scan a DIB for barcodes

admin October 26, 2009 Documentation, Knowledge Base No Comments

Syntax

 

.net/com/ocx: Object.ScanBarCodeFromDIB(hDIB)
dll: mtScanBarCodeFromDIB(hBarcode, hDIB)

Parameters

hBarcode Handle to an instance of the barcode toolkit (dll only).
hDIB handle (HDIB) to a device independent bitmap.

Return Value

-1 N/A
-2 DIB is multi-plane
-3 Invalid number of bits per sample
-4 Memory allocation error
-5 N/A
-6,-7,-8 Invalid license key.

Remarks

Scan the specified device independent bitmap for bar code strings and return the number of bar codes found. The image must be single plane.  A device independent barcode can be created by calling the Windows GDI function CreateDIBSection. Note that the function will stop when the first barcode is found in a document unless the MulipleRead property is set to True.

See also ScanBarCodeFromBitmap

Win32 dll declarations:

VB.Net:

Private Declare Function mtScanBarCodeFromDIB Lib “SoftekBarcode” (ByVal hBarcode As System.IntPtr, ByVal hDIB As IntPtr) As Short

Visual C++:

extern “C” {
short __stdcall mtScanBarCodeFromDIB(HANDLE hBarcode, long hDIB);
}

 

← SetScanRect – specify the rectangle to search within an image
ScanBarCodeFromBitmap – scan a bitmap for barcodes →
admin

  • Copyright © 2023 Softek Software Ltd. All Rights Reserved