public class Code93Writer extends OneDimensionalCodeWriter
Constructor and Description |
---|
Code93Writer() |
Modifier and Type | Method and Description |
---|---|
protected static int |
appendPattern(boolean[] target,
int pos,
int[] pattern,
boolean startColor)
Deprecated.
without replacement; intended as an internal-only method
|
boolean[] |
encode(String contents)
Encode the contents to boolean array expression of one-dimensional barcode.
|
BitMatrix |
encode(String contents,
BarcodeFormat format,
int width,
int height,
Map<EncodeHintType,?> hints)
Encode the contents following specified format.
|
encode, getDefaultMargin
public BitMatrix encode(String contents, BarcodeFormat format, int width, int height, 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 encoderBitMatrix
representing encoded barcode imageWriterException
- if contents cannot be encoded legally in a formatpublic boolean[] encode(String contents)
OneDimensionalCodeWriter
encode
in class OneDimensionalCodeWriter
contents
- barcode contents to encodeboolean[]
of horizontal pixels (false = white, true = black)@Deprecated protected static int appendPattern(boolean[] target, int pos, int[] pattern, boolean startColor)
target
- output to append topos
- start positionpattern
- pattern to appendstartColor
- unusedCopyright © 2007–2018. All rights reserved.