MicroQRCodeGenerator.ErrorCorrectionLevel Property
Specifies the amount of redundancy built into the Micro QR code to compensate for calculation errors.
Namespace: DevExpress.XtraPrinting.BarCode
Assembly: DevExpress.Printing.v24.2.Core.dll
Declaration
[DefaultValue(MicroQRCodeErrorCorrectionLevel.Auto)]
public virtual MicroQRCodeErrorCorrectionLevel ErrorCorrectionLevel { get; set; }
Property Value
Type | Default | Description |
---|---|---|
MicroQRCodeErrorCorrectionLevel | Auto | A MicroQRCodeErrorCorrectionLevel enumeration value that specifies the error correction level. |
Available values:
Name | Description |
---|---|
Auto | A level with the smallest available correction. |
D | (Detection): No redundant data is added to the encoded information. This level is available only for the smallest barcode size (M1). |
L | (Low): Restores up to 7% of encoded data. This level is available for barcode sizes M2-M4. |
M | (Medium): Restores up to 15% of encoded data. This level is available for barcode sizes M2-M4. |
Q | (Quartile): Restores up to 25% of encoded data. This level is available only for the largest barcode size (M4). |
Remarks
Like standard QR Codes, Micro QR Codes use Reed-Solomon error correction to recover lost or corrupted data. Reed-Solomon error correction works by adding redundant data to the encoded information in the QR codes. This redundancy enables the decoding algorithm to reconstruct the original data if part of the code is damaged or unreadable. The more redundancy (i.e., a higher error correction level), the more damage the code can withstand and still be read successfully.
However, the error correction capability in Micro QR Codes is more limited due to their compact design and smaller size. Micro QR codes support the following error correction levels:
- Level D (Detection): No redundant data is added to the encoded information. This level is available only for the smallest type (M1).
- Level L (Low): Restores up to 7% of encoded data. This level is available for types M2-M4.
- Level M (Medium): Restores up to 15% of encoded data. This level is available for types M2-M4.
- Level Q (Quartile): Restores up to 25% of encoded data. This level is available only for the largest size (M4).
Note that a higher error correction level requires more modules (small squares) to represent redundant data. When you extend redundant data, you limit the space available for actual data you want to encode.