Table of Contents

Class Encoder

Namespace
ZXing.Aztec.Internal
Assembly
zxing.dll

Generates Aztec 2D barcodes.

public static class Encoder
Inheritance
Encoder
Inherited Members

Fields

DEFAULT_AZTEC_LAYERS

default layers 0

public const int DEFAULT_AZTEC_LAYERS = 0

Field Value

int

DEFAULT_EC_PERCENT

default EC percent 33

public const int DEFAULT_EC_PERCENT = 33

Field Value

int

Methods

encode(byte[])

Encodes the given binary content as an Aztec symbol (without ECI code)

public static AztecCode encode(byte[] data)

Parameters

data byte[]

input data

Returns

AztecCode

Aztec symbol matrix with metadata

encode(byte[], int, int)

Encodes the given binary content as an Aztec symbol (without ECI code)

public static AztecCode encode(byte[] data, int minECCPercent, int userSpecifiedLayers)

Parameters

data byte[]

input data string

minECCPercent int

minimal percentage of error check words (According to ISO/IEC 24778:2008, a minimum of 23% + 3 words is recommended)

userSpecifiedLayers int

if non-zero, a user-specified value for the number of layers

Returns

AztecCode

Aztec symbol matrix with metadata

encode(byte[], int, int, Encoding)

Encodes the given binary content as an Aztec symbol

public static AztecCode encode(byte[] data, int minECCPercent, int userSpecifiedLayers, Encoding encoding)

Parameters

data byte[]

input data string

minECCPercent int

minimal percentage of error check words (According to ISO/IEC 24778:2008, a minimum of 23% + 3 words is recommended)

userSpecifiedLayers int

if non-zero, a user-specified value for the number of layers

encoding Encoding

character set to mark using ECI; if null, no ECI code will be inserted, and the default encoding of ISO/IEC 8859-1 will be assuming by readers.

Returns

AztecCode

Aztec symbol matrix with metadata

encode(byte[], int, int, Encoding, bool)

Encodes the given binary content as an Aztec symbol

public static AztecCode encode(byte[] data, int minECCPercent, int userSpecifiedLayers, Encoding encoding, bool disableEci)

Parameters

data byte[]

input data string

minECCPercent int

minimal percentage of error check words (According to ISO/IEC 24778:2008, a minimum of 23% + 3 words is recommended)

userSpecifiedLayers int

if non-zero, a user-specified value for the number of layers

encoding Encoding

character set to mark using ECI; if null, no ECI code will be inserted, and the default encoding of ISO/IEC 8859-1 will be assuming by readers.

disableEci bool

if true, don't add ECI segment, regardless if encoding ist set

Returns

AztecCode

Aztec symbol matrix with metadata

encode(string)

Encodes the given string content as an Aztec symbol (without ECI code)

public static AztecCode encode(string data)

Parameters

data string

input data string; must be encodable as ISO/IEC 8859-1 (Latin-1)

Returns

AztecCode

Aztec symbol matrix with metadata

encode(string, int, int)

public static AztecCode encode(string data, int minECCPercent, int userSpecifiedLayers)

Parameters

data string

input data string; must be encodable as ISO/IEC 8859-1 (Latin-1)

minECCPercent int

minimal percentage of error check words (According to ISO/IEC 24778:2008, a minimum of 23% + 3 words is recommended)

userSpecifiedLayers int

if non-zero, a user-specified value for the number of layers

Returns

AztecCode

Aztec symbol matrix with metadata

encode(string, int, int, Encoding)

Encodes the given string content as an Aztec symbol

public static AztecCode encode(string data, int minECCPercent, int userSpecifiedLayers, Encoding encoding)

Parameters

data string

input data string

minECCPercent int

minimal percentage of error check words (According to ISO/IEC 24778:2008, a minimum of 23% + 3 words is recommended)

userSpecifiedLayers int

if non-zero, a user-specified value for the number of layers

encoding Encoding

character set in which to encode string using ECI; if null, no ECI code will be inserted, and the string must be encodable as ISO/IEC 8859-1 (Latin-1), the default encoding of the symbol.

Returns

AztecCode

Aztec symbol matrix with metadata

encode(string, int, int, Encoding, bool)

Encodes the given string content as an Aztec symbol

public static AztecCode encode(string data, int minECCPercent, int userSpecifiedLayers, Encoding encoding, bool disableEci)

Parameters

data string

input data string

minECCPercent int

minimal percentage of error check words (According to ISO/IEC 24778:2008, a minimum of 23% + 3 words is recommended)

userSpecifiedLayers int

if non-zero, a user-specified value for the number of layers

encoding Encoding

character set in which to encode string using ECI; if null, no ECI code will be inserted, and the string must be encodable as ISO/IEC 8859-1 (Latin-1), the default encoding of the symbol.

disableEci bool

if true, dont't add ECI segment

Returns

AztecCode

Aztec symbol matrix with metadata