Class Mode
See ISO 18004:2006, 6.4.1, Tables 2 and 3. This enum encapsulates the various modes in which data can be encoded to bits in the QR code standard.
public sealed class Mode
- Inheritance
-
Mode
- Inherited Members
Fields
ALPHANUMERIC
public static readonly Mode ALPHANUMERIC
Field Value
BYTE
public static readonly Mode BYTE
Field Value
ECI
character counts don't apply
public static readonly Mode ECI
Field Value
FNC1_FIRST_POSITION
public static readonly Mode FNC1_FIRST_POSITION
Field Value
FNC1_SECOND_POSITION
public static readonly Mode FNC1_SECOND_POSITION
Field Value
HANZI
See GBT 18284-2000; "Hanzi" is a transliteration of this mode name.
public static readonly Mode HANZI
Field Value
KANJI
public static readonly Mode KANJI
Field Value
NUMERIC
public static readonly Mode NUMERIC
Field Value
STRUCTURED_APPEND
Not supported
public static readonly Mode STRUCTURED_APPEND
Field Value
TERMINATOR
Not really a mode...
public static readonly Mode TERMINATOR
Field Value
Properties
Bits
Gets the bits.
public int Bits { get; }
Property Value
Name
Gets the name.
public Mode.Names 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 Mode forBits(int bits)
Parameters
bits
intfour bits encoding a QR Code data mode
Returns
Exceptions
- ArgumentException
if bits do not correspond to a known mode
getCharacterCountBits(Version)
public int getCharacterCountBits(Version version)
Parameters
version
Versionversion in question
Returns
- int
number of bits used, in this QR Code symbol {@link Version}, to encode the count of characters that will follow encoded in this {@link Mode}