Package com.itextpdf.text.pdf.qrcode
Class QRCodeWriter
- java.lang.Object
-
- com.itextpdf.text.pdf.qrcode.QRCodeWriter
-
public final class QRCodeWriter extends java.lang.Object
This object renders a QR Code as a ByteMatrix 2D array of greyscale values.- Since:
- 5.0.2
- Author:
- dswitkin@google.com (Daniel Switkin)
-
-
Constructor Summary
Constructors Constructor Description QRCodeWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteMatrix
encode(java.lang.String contents, int width, int height)
ByteMatrix
encode(java.lang.String contents, int width, int height, java.util.Map<EncodeHintType,java.lang.Object> hints)
-
-
-
Method Detail
-
encode
public ByteMatrix encode(java.lang.String contents, int width, int height) throws WriterException
- Throws:
WriterException
-
encode
public ByteMatrix encode(java.lang.String contents, int width, int height, java.util.Map<EncodeHintType,java.lang.Object> hints) throws WriterException
- Throws:
WriterException
-
-