#include "BIBRW1D.H"
int CALLBACK GetBarCodeOrientation (HANDLE hDIB,
LPRECT pRect,
int * iAngle)
Description
This function works for only monochrome, 8 bit per pixel and 24 bit per pixel images. Returned Orientation is the orientation of the barcode, but this function only searches and does not decode the barcodes, so orientation is not periodical with 360 degrees, but 180 degrees.
Parameters
|
HDIB |
hDIB |
Handle of the input DIB. |
|
LPRECT |
pRect |
A rectangle specifying the area of the image where the barcode is. If all of the pRect values are zero, the whole image is scanned. |
|
int * |
ipAngle |
An integer buffer where the detected orientation is written into. The buffer must be allocated and freed up by the user. Orientation's unit is angle and is defined as the anlge in mathematics. It's from 0 degree to 359 degrees, and it's counter-clockwise. 0 degree is the normal horizontal barcode's angle assuming it's left to right coded. In case of having a right to left coded horizontal barcode, angle should be 180 degrees. |
Return values
0 on success or an error code on failure. For possible values see Barcode Error codes.
Programming notes
None
Requirements
Header : Declared in BIBrw1d.h; include BIBrw1d.h.
Library : Use BIBrw1d.lib (32 bit version) or BIBrw1dx.lib (64 bit version).
DLLs : BIBrw1d.dll (32 bit version) or BIBrw1dx.dll (64 bit version).