public interface Writer
| Modifier and Type | Method and Description |
|---|---|
BitMatrix |
encode(String
Encode a barcode using the default settings.
|
BitMatrix |
encode(String
|
BitMatrixencode(String contents, BarcodeFormat format, int width, int height) throws WriterException
contents - The contents to encode in the barcode
format - The barcode format to generate
width - The preferred width in pixels
height - The preferred height in pixels
BitMatrix representing encoded barcode image
WriterException - if contents cannot be encoded legally in a format
BitMatrixencode(String contents, BarcodeFormat format, int width, int height, Map <EncodeHintType ,?> hints) throws WriterException
contents - The contents to encode in the barcode
format - The barcode format to generate
width - The preferred width in pixels
height - The preferred height in pixels
hints - Additional parameters to supply to the encoder
BitMatrix representing encoded barcode image
WriterException - if contents cannot be encoded legally in a format