public class BarcodeQRCode extends Object
Constructor and Description |
---|
BarcodeQRCode(String content,
int width,
int height,
Map<EncodeHintType,Object> hints)
Creates the QR barcode.
|
public BarcodeQRCode(String content, int width, int height, Map<EncodeHintType,Object> hints)
content
- the text to be encodedwidth
- the barcode widthheight
- the barcode heighthints
- modifiers to change the way the barcode is create. They can be EncodeHintType.ERROR_CORRECTION
and EncodeHintType.CHARACTER_SET. For EncodeHintType.ERROR_CORRECTION the values can be ErrorCorrectionLevel.L, M, Q, H.
For EncodeHintType.CHARACTER_SET the values are strings and can be Cp437, Shift_JIS and ISO-8859-1 to ISO-8859-16. The default value is
ISO-8859-1.WriterException
public Image getImage() throws BadElementException
Image
with the barcode.Image
BadElementException
- on errorCopyright © 2013. All rights reserved.