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.

Members

uStructSize

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

ulFlags

Flags that indicate how the QR symbol is justified. 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.

The QR standard specifies 40 different sizes of the QR code and the maximum data capacity will vary depending on the size and Error Correction level. The table below lists the maximum data capacity for each ECC level and encoding scheme.

For a table containing information useful when writing QR barcode data, refer to QR Code Barcodes in LEADTOOLS.

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Barcode C API Help