Class Encoder
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
DEFAULT_EC_PERCENT
default EC percent 33
public const int DEFAULT_EC_PERCENT = 33
Field Value
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
intminimal percentage of error check words (According to ISO/IEC 24778:2008, a minimum of 23% + 3 words is recommended)
userSpecifiedLayers
intif 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
intminimal percentage of error check words (According to ISO/IEC 24778:2008, a minimum of 23% + 3 words is recommended)
userSpecifiedLayers
intif non-zero, a user-specified value for the number of layers
encoding
Encodingcharacter 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
intminimal percentage of error check words (According to ISO/IEC 24778:2008, a minimum of 23% + 3 words is recommended)
userSpecifiedLayers
intif non-zero, a user-specified value for the number of layers
encoding
Encodingcharacter 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
boolif 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
stringinput 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
stringinput data string; must be encodable as ISO/IEC 8859-1 (Latin-1)
minECCPercent
intminimal percentage of error check words (According to ISO/IEC 24778:2008, a minimum of 23% + 3 words is recommended)
userSpecifiedLayers
intif 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
stringinput data string
minECCPercent
intminimal percentage of error check words (According to ISO/IEC 24778:2008, a minimum of 23% + 3 words is recommended)
userSpecifiedLayers
intif non-zero, a user-specified value for the number of layers
encoding
Encodingcharacter 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
stringinput data string
minECCPercent
intminimal percentage of error check words (According to ISO/IEC 24778:2008, a minimum of 23% + 3 words is recommended)
userSpecifiedLayers
intif non-zero, a user-specified value for the number of layers
encoding
Encodingcharacter 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
boolif true, dont't add ECI segment
Returns
- AztecCode
Aztec symbol matrix with metadata