Package com.google.zxing.aztec
Class AztecWriter
- java.lang.Object
-
- com.google.zxing.aztec.AztecWriter
-
-
Constructor Summary
Constructors Constructor Description AztecWriter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
encode
public BitMatrix encode(java.lang.String contents, BarcodeFormat format, int width, int height)
Description copied from interface:Writer
Encode a barcode using the default settings.
-
encode
public BitMatrix encode(java.lang.String contents, BarcodeFormat format, int width, int height, java.util.Map<EncodeHintType,?> hints)
- Specified by:
encode
in interfaceWriter
- Parameters:
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- Returns:
BitMatrix
representing encoded barcode image
-
encode
private static BitMatrix encode(java.lang.String contents, BarcodeFormat format, int width, int height, java.nio.charset.Charset charset, int eccPercent, int layers)
-
-