bardecode.com

  • Increase font size
  • Default font size
  • Decrease font size
Home Documentation ScanBarCodeFromDIB - scan a DIB for barcodes

ScanBarCodeFromDIB - scan a DIB for barcodes

Overview

 

ScanBarCodeFromDIB(hDIB)

Scan the specified device independent bitmap for bar code strings and return the number of bar codes found. The image must be single plane.

If the returned value is less than 0 then an error has occurred:

Value Comment
-1 N/A
-2 DIB file is Multi Plane
-3 N/A
-4 N/A
-5 N/A
-6, -7 or -8 The trial period on a demo version has either expired or this trial version is no longer valid for installation.

See also ScanBarCodeFromBitmap.

Visual Basic using the OCX

count = [form.]SoftekBarcode.ScanBarCodeFromDIB(hDIB)

Visual Basic using the DLL

Private Declare Function stScanBarCodeFromDIB Lib "SoftekBarcode" (ByVal hDIB As Long) As Integer
count = stScanBarCodeFromDIB(hDIB)

Visual Basic using COM

Not yet supported in this interface.

VB.Net using the DLL

Private Declare Function stScanBarCodeFromDIB Lib "SoftekBarcode" (ByVal hDIB As IntPtr) As Short
count = stScanBarCodeFromDIB(hDIB)

VB.Net using the SoftekBarcode Wrapper Class

Dim barcode As SoftekBarcode
..........
count = barcode.ScanBarCodeFromDIB(hDIB)

VB.Net using the SoftekBarcodeLib Managed Component

Dim barcode As SoftekBarcodeLib.BarcodeReader
....
nBarCode = barcode.ScanBarCodeFromDIB(hDIB)

 

Visual C++ Using the OCX

short ScanBarCodeFromDIB(long hDIB)

Visual C++ Using the DLL

short __stdcall stScanBarCodeFromDIB(long hDIB);