Package com.itextpdf.text.pdf.qrcode
Class QRCodeWriter
java.lang.Object
com.itextpdf.text.pdf.qrcode.QRCodeWriter
This object renders a QR Code as a ByteMatrix 2D array of greyscale values.
- Since:
- 5.0.2
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionencode
(String contents, int width, int height, Map<EncodeHintType, Object> hints) private static ByteMatrix
renderResult
(QRCode code, int width, int height) private static void
setRowColor
(byte[] row, byte value)
-
Field Details
-
QUIET_ZONE_SIZE
private static final int QUIET_ZONE_SIZE- See Also:
-
-
Constructor Details
-
QRCodeWriter
public QRCodeWriter()
-
-
Method Details
-
encode
- Throws:
WriterException
-
encode
public ByteMatrix encode(String contents, int width, int height, Map<EncodeHintType, Object> hints) throws WriterException- Throws:
WriterException
-
renderResult
-
setRowColor
private static void setRowColor(byte[] row, byte value)
-