public final class ITFWriter extends OneDimensionalCodeWriter
BitMatrix.| 构造器和说明 |
|---|
ITFWriter() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean[] |
encode(java.lang.String contents)
Encode the contents to boolean array expression of one-dimensional barcode.
|
BitMatrix |
encode(java.lang.String contents,
BarcodeFormat format,
int width,
int height,
java.util.Map<EncodeHintType,?> hints)
Encode the contents following specified format.
|
encode, getDefaultMarginpublic BitMatrix encode(java.lang.String contents, BarcodeFormat format, int width, int height, java.util.Map<EncodeHintType,?> hints) throws WriterException1
OneDimensionalCodeWriterwidth and height are required size. This method may return bigger size
BitMatrix when specified size is too small. The user can set both width and
height to zero to get minimum size barcode. If negative value is set to width
or height, IllegalArgumentException is thrown.encode 在接口中 Writerencode 在类中 OneDimensionalCodeWritercontents - The contents to encode in the barcodeformat - The barcode format to generatewidth - The preferred width in pixelsheight - The preferred height in pixelshints - Additional parameters to supply to the encoderBitMatrix representing encoded barcode imageWriterException1 - if contents cannot be encoded legally in a formatpublic boolean[] encode(java.lang.String contents)
OneDimensionalCodeWriterencode 在类中 OneDimensionalCodeWritercontents - barcode contents to encodeboolean[] of horizontal pixels (false = white, true = black)