Table of Contents

Class ErrorCorrectionLevel

Namespace
ZXing.QrCode.Internal
Assembly
zxing.dll

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

ErrorCorrectionLevel

L

L = ~7% correction

public static readonly ErrorCorrectionLevel L

Field Value

ErrorCorrectionLevel

M

M = ~15% correction

public static readonly ErrorCorrectionLevel M

Field Value

ErrorCorrectionLevel

Q

Q = ~25% correction

public static readonly ErrorCorrectionLevel Q

Field Value

ErrorCorrectionLevel

Properties

Bits

Gets the bits.

public int Bits { get; }

Property Value

int

Name

Gets the name.

public string Name { get; }

Property Value

string

Methods

ToString()

Returns a string that represents this instance.

public override string ToString()

Returns

string

A string that represents this instance.

forBits(int)

Fors the bits.

public static ErrorCorrectionLevel forBits(int bits)

Parameters

bits int

int 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()

Returns

int