Package com.google.zxing.oned
Class UPCAWriter
- java.lang.Object
-
- com.google.zxing.oned.UPCAWriter
-
-
Field Summary
Fields Modifier and Type Field Description private EAN13Writer
subWriter
-
Constructor Summary
Constructors Constructor Description UPCAWriter()
-
Method Summary
All 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.BitMatrix
encode(java.lang.String contents, BarcodeFormat format, int width, int height, java.util.Map<EncodeHintType,?> hints)
-
-
-
Field Detail
-
subWriter
private final EAN13Writer subWriter
-
-
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
-
-