DBR_DecodeDIBRect Function

Decodes barcode from a handle of device-independent bitmap (DIB) by only searching a certain part of the image defined by the parameters top, left, width, height.

Syntax

int DBR_DecodeDIBRect(
        HANDLE hDIB, 
        const pReaderOptions pOptions,
        int iRectLeft,
        int iRectTop,
        int iRectWidth,
        int iRectHeight,
        pBarcodeResultArray *ppResults
);

Parameters

hDIB
Handle of the device-independent bitmap (DIB).
pOptions
The options for reading barcode.
iRectLeft
An integer value that defines the left margin coordinate of scanning zone.
iRectTop
An integer value that defines the top margin coordinate of scanning zone.
iRectWidth
An integer that defines the width of scanning zone.
iRectHeight
An integer that defines the height of scanning zone.
ppResults
A structure containing barcode results.

Return Value

Zero if the function completed successfully; otherwise nonzero.

See Also

C > Structs > ReaderOptions
C > Structs > BarcodeResultArray
C > Function > DecodeBID
C > Constant > BarcodeFormat
C > Constant > Error List