Class ErrorCorrectionLevel
See ISO 18004:2006, 6.5.1. This enum encapsulates the four error correction levels defined by the QR code standard.
public sealed class ErrorCorrectionLevel
- Inheritance
-
ErrorCorrectionLevel
- Inherited Members
Fields
H
H = ~30% correction
public static readonly ErrorCorrectionLevel H
Field Value
L
L = ~7% correction
public static readonly ErrorCorrectionLevel L
Field Value
M
M = ~15% correction
public static readonly ErrorCorrectionLevel M
Field Value
Q
Q = ~25% correction
public static readonly ErrorCorrectionLevel Q
Field Value
Properties
Bits
Gets the bits.
public int Bits { get; }
Property Value
Name
Gets the name.
public string Name { get; }
Property Value
Methods
ToString()
Returns a string that represents this instance.
public override string ToString()
Returns
forBits(int)
Fors the bits.
public static ErrorCorrectionLevel forBits(int bits)
Parameters
bits
intint containing the two bits encoding a QR Code's error correction level
Returns
- ErrorCorrectionLevel
ErrorCorrectionLevel representing the encoded error correction level
ordinal()
Ordinals this instance.
public int ordinal()