Constructor and Description |
---|
PDF417Writer() |
Modifier and Type | Method and Description |
---|---|
BitMatrix |
encode(java.lang.String contents,
BarcodeFormat format,
boolean compact,
int width,
int height,
int minCols,
int maxCols,
int minRows,
int maxRows,
Compaction compaction)
Deprecated.
Use
encode(String, BarcodeFormat, int, int, Map) instead, with hints to
specify the encoding options. |
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) |
public BitMatrix encode(java.lang.String contents, BarcodeFormat format, int width, int height, java.util.Map<EncodeHintType,?> hints) throws WriterException
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 encoderWriterException
public BitMatrix encode(java.lang.String contents, BarcodeFormat format, int width, int height) throws WriterException
Writer
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 pixelsWriterException
@Deprecated public BitMatrix encode(java.lang.String contents, BarcodeFormat format, boolean compact, int width, int height, int minCols, int maxCols, int minRows, int maxRows, Compaction compaction) throws WriterException
encode(String, BarcodeFormat, int, int, Map)
instead, with hints to
specify the encoding options.WriterException