C# Class zxingwp7.oned.UPCEANWriter

Encapsulates functionality and implementation that is common to UPC and EAN families of one-dimensional barcodes.

Inheritance: Writer
Exibir arquivo Open project: henningms/zxing2.0-wp7

Public Methods

Method Description
encode ( String contents, BarcodeFormat format, int width, int height ) : ByteMatrix
encode ( String contents, BarcodeFormat format, int width, int height, Object>.Dictionary hints ) : ByteMatrix
encode ( String contents ) : sbyte[]

Protected Methods

Method Description
appendPattern ( sbyte target, int pos, int pattern, int startColor ) : int

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

Private Methods

Method Description
renderResult ( sbyte code, int width, int height ) : ByteMatrix

Method Details

appendPattern() protected static method

Appends the given pattern to the target array starting at pos.
protected static appendPattern ( sbyte target, int pos, int pattern, int startColor ) : int
target sbyte
pos int
pattern int
startColor int starting color - 0 for white, 1 for black ///
return int

encode() public method

public encode ( String contents, BarcodeFormat format, int width, int height ) : ByteMatrix
contents String
format BarcodeFormat
width int
height int
return zxingwp7.common.ByteMatrix

encode() public method

public encode ( String contents, BarcodeFormat format, int width, int height, Object>.Dictionary hints ) : ByteMatrix
contents String
format BarcodeFormat
width int
height int
hints Object>.Dictionary
return zxingwp7.common.ByteMatrix

encode() public abstract method

public abstract encode ( String contents ) : sbyte[]
contents String
return sbyte[]