docs/apidocs/com/google/zxing/MultiFormatWriter.html
Package com.google.zxing
java.lang.Object com.google.zxing.MultiFormatWriter
All Implemented Interfaces:Writer
public final class MultiFormatWriterextends Object implements Writer
Constructors
Constructor
Description
MultiFormatWriter()
All MethodsInstance MethodsConcrete Methods
Modifier and Type
Method
Description
BitMatrix
encode(String contents, BarcodeFormat format, int width, int height)
Encode a barcode using the default settings.
BitMatrix
encode(String contents, BarcodeFormat format, int width, int height, Map<EncodeHintType,?> hints)
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public MultiFormatWriter()
public BitMatrix encode(String contents, BarcodeFormat format, int width, int height) throws WriterException
Description copied from interface: Writer
encode in interface WriterParameters:contents - The contents to encode in the barcodeformat - The barcode format to generatewidth - The preferred width in pixelsheight - The preferred height in pixelsReturns:BitMatrix representing encoded barcode imageThrows:WriterException - if contents cannot be encoded legally in a formatpublic BitMatrix encode(String contents, BarcodeFormat format, int width, int height, Map<EncodeHintType,?> hints) throws WriterException
Specified by:encode in interface WriterParameters: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 encoderReturns:BitMatrix representing encoded barcode imageThrows:WriterException - if contents cannot be encoded legally in a format