Table of Contents

Class Mode

Namespace
ZXing.QrCode.Internal
Assembly
zxing.dll

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

Mode

BYTE

public static readonly Mode BYTE

Field Value

Mode

ECI

character counts don't apply

public static readonly Mode ECI

Field Value

Mode

FNC1_FIRST_POSITION

public static readonly Mode FNC1_FIRST_POSITION

Field Value

Mode

FNC1_SECOND_POSITION

public static readonly Mode FNC1_SECOND_POSITION

Field Value

Mode

HANZI

See GBT 18284-2000; "Hanzi" is a transliteration of this mode name.

public static readonly Mode HANZI

Field Value

Mode

KANJI

public static readonly Mode KANJI

Field Value

Mode

NUMERIC

public static readonly Mode NUMERIC

Field Value

Mode

STRUCTURED_APPEND

Not supported

public static readonly Mode STRUCTURED_APPEND

Field Value

Mode

TERMINATOR

Not really a mode...

public static readonly Mode TERMINATOR

Field Value

Mode

Properties

Bits

Gets the bits.

public int Bits { get; }

Property Value

int

Name

Gets the name.

public Mode.Names Name { get; }

Property Value

Mode.Names

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 Mode forBits(int bits)

Parameters

bits int

four bits encoding a QR Code data mode

Returns

Mode

Mode encoded by these bits

Exceptions

ArgumentException

if bits do not correspond to a known mode

getCharacterCountBits(Version)

public int getCharacterCountBits(Version version)

Parameters

version Version

version 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}