|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.zxing.oned.OneDimensionalCodeWriter
com.google.zxing.oned.UPCEANWriter
com.google.zxing.oned.ITFWriter
public final class ITFWriter
This object renders a ITF code as a BitMatrix
.
Constructor Summary | |
---|---|
ITFWriter()
|
Method Summary | |
---|---|
byte[] |
encode(java.lang.String contents)
Encode the contents to byte 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. |
Methods inherited from class com.google.zxing.oned.OneDimensionalCodeWriter |
---|
appendPattern, encode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ITFWriter()
Method Detail |
---|
public BitMatrix encode(java.lang.String contents, BarcodeFormat format, int width, int height, java.util.Map<EncodeHintType,?> hints) throws WriterException
OneDimensionalCodeWriter
width
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
in interface Writer
encode
in class OneDimensionalCodeWriter
contents
- 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 encoder
WriterException
public byte[] encode(java.lang.String contents)
OneDimensionalCodeWriter
encode
in class OneDimensionalCodeWriter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |