Constructor and Description |
---|
AztecWriter() |
Modifier and Type | Method and Description |
---|---|
BitMatrix |
encode(java.lang.String contents,
BarcodeFormat format,
int width,
int height)
Encode a barcode using the default settings.
|
private static BitMatrix |
encode(java.lang.String contents,
BarcodeFormat format,
int width,
int height,
java.nio.charset.Charset charset,
int eccPercent,
int layers) |
BitMatrix |
encode(java.lang.String contents,
BarcodeFormat format,
int width,
int height,
java.util.Map<EncodeHintType,?> hints) |
private static BitMatrix |
renderResult(AztecCode code,
int width,
int height) |
public BitMatrix encode(java.lang.String contents, BarcodeFormat format, int width, int height)
Writer
public BitMatrix encode(java.lang.String contents, BarcodeFormat format, int width, int height, java.util.Map<EncodeHintType,?> hints)
encode
in interface Writer
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 imageprivate static BitMatrix encode(java.lang.String contents, BarcodeFormat format, int width, int height, java.nio.charset.Charset charset, int eccPercent, int layers)