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
Ejemplo n.º 1
0
 private FormatInformation(int formatInfo)
 {
     // Bits 3,4
     errorCorrectionLevel = ErrorCorrectionLevel.forBits((formatInfo >> 3) & 0x03);
     // Bottom 3 bits
     dataMask = (byte)(formatInfo & 0x07);
 }