C# Class ZXing.QrCode.Internal.ErrorCorrectionLevel

See ISO 18004:2006, 6.5.1. This enum encapsulates the four error correction levels defined by the QR code standard.

Show file Open project: cyberh0me/OTP Class Usage Examples

Public Properties

Property Type Description
H ErrorCorrectionLevel
L ErrorCorrectionLevel
M ErrorCorrectionLevel
Q ErrorCorrectionLevel

Public Methods

Method Description
ToString ( ) : String
forBits ( int bits ) : ErrorCorrectionLevel
ordinal ( ) : int

Private Methods

Method Description
ErrorCorrectionLevel ( int ordinal, int bits, String name ) : System

Method Details

ToString() public method

public ToString ( ) : String
return String

forBits() public static method

public static forBits ( int bits ) : ErrorCorrectionLevel
bits int int containing the two bits encoding a QR Code's error correction level ///
return ErrorCorrectionLevel

ordinal() public method

public ordinal ( ) : int
return int

Property Details

H public static property

H = ~30% correction
public static ErrorCorrectionLevel,ZXing.QrCode.Internal H
return ErrorCorrectionLevel

L public static property

L = ~7% correction
public static ErrorCorrectionLevel,ZXing.QrCode.Internal L
return ErrorCorrectionLevel

M public static property

M = ~15% correction
public static ErrorCorrectionLevel,ZXing.QrCode.Internal M
return ErrorCorrectionLevel

Q public static property

Q = ~25% correction
public static ErrorCorrectionLevel,ZXing.QrCode.Internal Q
return ErrorCorrectionLevel