Table of Contents

Enum QrErrorCorrection

Namespace
Egami.Barcodes
Assembly
Egami.Barcodes.dll

The error correction level of a QR Code: how much of the symbol can be damaged and still read.

public enum QrErrorCorrection

Fields

H = 3

About 30 % of the codewords can be restored.

L = 0

About 7 % of the codewords can be restored.

M = 1

About 15 % of the codewords can be restored.

Q = 2

About 25 % of the codewords can be restored.

Examples

// Level M, raised to Q or H when that fits in the same size; segments chosen for the fewest bits.
Barcode link = Barcode.Qr("https://inexin.github.io/Egami/");

// A fixed size and level, for a layout that must not change.
Barcode fixedSize = Barcode.Qr("ORDER-1180042", new QrOptions { Version = 3, ErrorCorrection = QrErrorCorrection.H });

// Bytes as they are, and GS1 element strings with FNC1.
Barcode bytes = Barcode.Qr([0x45, 0x67, 0x61, 0x6D, 0x69]);
Barcode gs1 = Barcode.Qr(Gs1.Parse("(01)09501101530003(10)AB12"));

using Raster<Gray8> image = link.ToRaster(pixelsPerModule: 4);