Table of Contents

Class AztecWriter

Namespace
ZXing.Aztec
Assembly
zxing.dll

Renders an Aztec code as a BitMatrix

public sealed class AztecWriter : Writer
Inheritance
AztecWriter
Implements
Inherited Members

Constructors

AztecWriter()

public AztecWriter()

Fields

DEFAULT_CHARSET

default character set

public static readonly Encoding DEFAULT_CHARSET

Field Value

Encoding

Methods

encode(byte[], BarcodeFormat, int, int, IDictionary<EncodeHintType, object>)

public BitMatrix encode(byte[] contents, BarcodeFormat format, int width, int height, IDictionary<EncodeHintType, object> hints)

Parameters

contents byte[]

The contents to encode in the barcode

format BarcodeFormat

The barcode format to generate

width int

The preferred width in pixels

height int

The preferred height in pixels

hints IDictionary<EncodeHintType, object>

Additional parameters to supply to the encoder

Returns

BitMatrix

The generated barcode as a Matrix of unsigned bytes (0 == black, 255 == white)

encode(string, BarcodeFormat, int, int)

Encode a barcode using the default settings.

public BitMatrix encode(string contents, BarcodeFormat format, int width, int height)

Parameters

contents string

The contents to encode in the barcode

format BarcodeFormat

The barcode format to generate

width int

The preferred width in pixels

height int

The preferred height in pixels

Returns

BitMatrix

The generated barcode as a Matrix of unsigned bytes (0 == black, 255 == white)

encode(string, BarcodeFormat, int, int, IDictionary<EncodeHintType, object>)

public BitMatrix encode(string contents, BarcodeFormat format, int width, int height, IDictionary<EncodeHintType, object> hints)

Parameters

contents string

The contents to encode in the barcode

format BarcodeFormat

The barcode format to generate

width int

The preferred width in pixels

height int

The preferred height in pixels

hints IDictionary<EncodeHintType, object>

Additional parameters to supply to the encoder

Returns

BitMatrix

The generated barcode as a Matrix of unsigned bytes (0 == black, 255 == white)