public final class QRCodeWriter extends Object
| Constructor and Description |
|---|
QRCodeWriter() |
| Modifier and Type | Method and Description |
|---|---|
ByteMatrix |
encode(String contents, int width, int height)
Encode a string into a QR code with dimensions width x height, using error-correction level L and the smallest version for which he contents fit into the QR-code?
|
ByteMatrix |
encode(String contents, int width, int height, Map<EncodeHintType,Object> hints)
Encode a string into a QR code with dimensions width x height.
|
public ByteMatrix encode(String contents, int width, int height) throws WriterException
contents - String to encode into the QR code
width - width of the QR-code
height - height of the QR-code
WriterException
public ByteMatrix encode(String contents, int width, int height, Map<EncodeHintType,Object> hints) throws WriterException
contents - String to encode into the QR code
width - width of the QR-code
height - height of the QR-code
hints - Map containing suggestions for error-correction level and version
WriterException
Copyright © 1998–2017 iText Group NV. All rights reserved.