SetBarcodeUnit

 

 

#include “BlackIceDEVMODE.h”

 

BOOL SetBarcodeUnit (BlackIceDEVMODE* pDevMode, DWORD dwUnit);

Description

Sets 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

DWORD dwUnit                               - 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.

 

Return value

TRUE on success, FALSE otherwise.