Barcode Xpress for Linux v13.1 - Updated
BX_CreateParameters2D
API Reference > Barcode Component API Reference > Barcode Component Structures Reference > BX_CreateParameters2D

Specifies the parameters used when creating a 2D barcode.

Declaration:

Copy Code
typedef struct tagBX_CreateParameters2D {
    long Rows;
    long Columns;
    long ErrorCorrectionLevel;
} BX_CreateParameters2D;

Members:

Rows long

Specifies the number of rows to create.

Set this to -1 to let the writer automatically choose the number of rows.

Columns long

Specifies the number of columns to create.

Set this to -1 to let the writer automatically choose the number of columns.

ErrorCorrectionLevel long

Specifies the amount of error correction to use for barcodes that support it.

Error correction is valid for QR barcodes and PDF417 barcodes.

The error correction level for the QR Code ranges from a low of -1 to a high of 3.  A high error correction level should be used in application where symbol damage is expected.

The error correction level for the PDF417 ranges from a low of -1 (2 code words of error correction) to a high of 8 (512 code words of error correction).  A high error correction level should be used in application where symbol damage is expected.

A -1 value indicates that the barcode writer chooses the best error correction level based on the number of code words in the data stream.