zxingwp7.qrcode.decoder.ErrorCorrectionLevel.forBits C# (CSharp) Method

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
        public static ErrorCorrectionLevel forBits(int bits)
        {
            if (bits < 0 || bits >= FOR_BITS.Length)
            {
                throw new ArgumentException();
            }
            return FOR_BITS[bits];
        }
    }