BARCODEWRITEDM

typedef struct _tagBARCODEWRITEDM
{
   L_INT nSize;
   L_UINT32 ulFlags;
   L_CHAR cGroupNumber;
   L_CHAR cGroupTotal;
   L_UCHAR cFileIDLo;
   L_UCHAR cFileIDHi;
   L_INT nXModule;
} BARCODEWRITEDM, L_FAR * pBARCODEWRITEDM;

The BARCODEWRITEDM structure contains write information for Data Matrix symbols.

Member

Description

nSize

Size of the structure in bytes.

ulFlags

Flags that indicate how to configure the engine. You can combine values when appropriate, by using a bitwise OR ( | ). Possible values are:

 

Flags

Meaning

 

BARCODE_JUSTIFY_RIGHT

[0x1000] Justifies the Data Matrix symbol to the right side of the bitmap.

 

BARCODE_JUSTIFY_H_CENTER

[0x2000] Justifies the Data Matrix symbol in the horizontal center of the bitmap.

 

BARCODE_JUSTIFY_BOTTOM

[0x4000] Justifies the Data Matrix symbol to the bottom side of the bitmap.

 

BARCODE_JUSTIFY_V_CENTER

[0x8000] Justifies the Data Matrix symbol in the vertical center of the bitmap.

cGroupNumber

Specifies a group of Data Matrix symbols. The maximum number of symbols in a group is 16.

cGroupTotal

Specifies the total number of Data Matrix symbols in the group specified by the cGroupNumber member. The maximum number of symbols in a group is 16.

cFileIDLo

Specifies the low byte of the file ID number. The number must range from 1 to 254.

cFileIDHi

Specifies the high byte of the file ID number. The number must range from 1 to 254.

nXModule

The size of the written Data Matrix barcode, specified in 0.001 inch. If the value is too small, a minimum of 5 pixels will be used.

Comments

pBARCODEWRITEDM is a pointer to an BARCODEWRITEDM structure. Where the function parameter type is pBARCODEWRITEDM, you can declare a BARCODEWRITEDM variable, update the structure's fields, and pass the variable's address in the parameter. Declaring a pBARCODEWRITEDM variable is necessary only if your program requires a pointer.