C# 클래스 ZXing.OneD.OneDimensionalCodeWriter

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

[email protected] (Kazuki Nishiura)
상속: Writer
파일 보기 프로젝트 열기: Redth/ZXing.Net.Mobile

공개 메소드들

메소드 설명
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[]