C# Класс ZXing.OneD.OneDimensionalCodeWriter

Encapsulates functionality and implementation that is common to one-dimensional barcodes.

[email protected] (Kazuki Nishiura)
Наследование: Writer
Показать файл Открыть проект

Открытые методы

Метод Описание
CalculateChecksumDigitModulo10 ( String contents ) : String

Calculates the checksum digit modulo10.

encode ( String contents, BarcodeFormat format, int width, int height ) : BitMatrix

Encode a barcode using the default settings.

encode ( String contents, BarcodeFormat format, int width, int height, object>.IDictionary hints ) : BitMatrix

Encode the contents following specified format. {@code width} and {@code height} are required size. This method may return bigger size {@code BitMatrix} when specified size is too small. The user can set both {@code width} and {@code height} to zero to get minimum size barcode. If negative value is set to {@code width} or {@code height}, {@code IllegalArgumentException} is thrown.

encode ( String contents ) : bool[]

Encode the contents to bool array expression of one-dimensional barcode. Start code and end code should be included in result, and side margins should not be included.

Защищенные методы

Метод Описание
appendPattern ( bool target, int pos, int pattern, bool startColor ) : int

Appends the given pattern to the target array starting at pos.

Приватные методы

Метод Описание
renderResult ( bool code, int width, int height, int sidesMargin ) : BitMatrix

Описание методов

CalculateChecksumDigitModulo10() публичный статический Метод

Calculates the checksum digit modulo10.
public static CalculateChecksumDigitModulo10 ( String contents ) : String
contents String The contents.
Результат String

appendPattern() защищенный статический Метод

Appends the given pattern to the target array starting at pos.
protected static appendPattern ( bool target, int pos, int pattern, bool startColor ) : int
target bool encode black/white pattern into this array
pos int position to start encoding at in target
pattern int lengths of black/white runs to encode
startColor bool starting color - false for white, true for black
Результат int

encode() публичный Метод

Encode a barcode using the default settings.
public encode ( String contents, BarcodeFormat format, int width, int height ) : BitMatrix
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
Результат ZXing.Common.BitMatrix

encode() публичный Метод

Encode the contents following specified format. {@code width} and {@code height} are required size. This method may return bigger size {@code BitMatrix} when specified size is too small. The user can set both {@code width} and {@code height} to zero to get minimum size barcode. If negative value is set to {@code width} or {@code height}, {@code IllegalArgumentException} is thrown.
public encode ( String contents, BarcodeFormat format, int width, int height, object>.IDictionary hints ) : BitMatrix
contents String
format BarcodeFormat
width int
height int
hints object>.IDictionary
Результат ZXing.Common.BitMatrix

encode() публичный абстрактный Метод

Encode the contents to bool array expression of one-dimensional barcode. Start code and end code should be included in result, and side margins should not be included.
public abstract encode ( String contents ) : bool[]
contents String barcode contents to encode
Результат bool[]