BARCODEWRITEQR

typedef struct _tagBARCODEWRITEQR
{
   L_UINT uStructSize;
   L_UINT32 ulFlags;
   L_INT nGroupNumber;
   L_INT nGroupTotal;
   L_INT nEccLevel;
   L_INT nXModule;
} BARCODEWRITEQR, * pBARCODEWRITEQR;

The BARCODEWRITEQR structure contains write information for QR symbols.

Member

Description

uStructSize

Size of this structure in bytes.  Use the sizeof() macro to calculate this value.

ulFlags

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

 

Value

Meaning

 

BARCODE_JUSTIFY_RIGHT

[0x1000] Justify the QR symbol to the right side of the bitmap.

 

BARCODE_JUSTIFY_H_CENTER

[0x2000] Justify the QR symbol in the horizontal center of the bitmap.

 

BARCODE_JUSTIFY_BOTTOM

[0x4000] Justify the QR symbol to the bottom side of the bitmap.

 

BARCODE_JUSTIFY_V_CENTER

[0x8000] Justify the QR symbol in the vertical center of the bitmap.

nGroupNumber

Specifies a group of QR Code symbols. The maximum number of symbols in a group is 16.

nGroupTotal

Specifies the total number of QR Code symbols. The maximum number of symbols in a group is 16.

nEccLevel

ECC level of QR Code symbol to write.  Possible values are:

 

Value

Meaning

 

BARCODE_QR_ECC_L

[0] QR Code ECC Level 'L', lowest capability.

 

BARCODE_QR_ECC_M

[1] QR Code ECC Level 'M', standard capability.

 

BARCODE_QR_ECC_Q

[2] QR Code ECC Level 'Q', high reliability.

 

BARCODE_QR_ECC_H

[3] QR Code ECC Level 'H', maximum reliability.

nXModule

Specifies the size of the written QR barcode in 0.001 inches. If the value is too small, a minimum of 5 pixels will be used.

Comments

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