#include “BlackIceDEVMODE.h”
int GetBarcodeUnit (BlackIceDEVMODE* pDevMode);
Description
Returns the units used by SetBarcodeXOffset and SetBarcodeYOffset for positioning the barcode. It does not change the units used for calculating the barcode sizes. The line and module sizes are always based on pixels to help recognition
Parameters
BlackIceDEVMODE* pDevMode - pointer to the BlackIceDEVMODE structure
Return value
The return value can be one of the values of the BarcodeUnit enumeration:
enum BarcodeUnit
{
BARCODE_PIXELS = 0,
BARCODE_MM,
BARCODE_INCHES
};
BARCODE_PIXELS (0): the offsets are specified in pixels.
BARCODE_MM (1): the offsets are specified in tenths of millimeters.
BARCODE_INCHES (2): the offsets are specified in hundredths of inches.