Package com.google.zxing.oned
Class UPCAWriter
- java.lang.Object
-
- com.google.zxing.oned.UPCAWriter
-
-
Field Summary
Fields Modifier and Type Field Description private EAN13WritersubWriter
-
Constructor Summary
Constructors Constructor Description UPCAWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BitMatrixencode(java.lang.String contents, BarcodeFormat format, int width, int height)Encode a barcode using the default settings.BitMatrixencode(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:WriterEncode 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:
encodein 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:
BitMatrixrepresenting encoded barcode image
-
-