C# Class ZXing.OneD.Code39Writer

This object renders a CODE39 code as a BitMatrix. [email protected] (Erik Barbara)
Inheritance: OneDimensionalCodeWriter
Exibir arquivo Open project: Redth/ZXing.Net.Mobile

Public Methods

Method Description
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 byte array expression of one-dimensional barcode. Start code and end code should be included in result, and side margins should not be included. a {@code boolean[]} of horizontal pixels (false = white, true = black)

Private Methods

Method Description
toIntArray ( int a, int toReturn ) : void

Method Details

encode() public method

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
return ZXing.Common.BitMatrix

encode() public method

Encode the contents to byte array expression of one-dimensional barcode. Start code and end code should be included in result, and side margins should not be included. a {@code boolean[]} of horizontal pixels (false = white, true = black)
public encode ( String contents ) : bool[]
contents String
return bool[]