Class QRCodeWriter
java.lang.Object
zext.plantuml.com.google.zxing.qrcode.QRCodeWriter
- All Implemented Interfaces:
Writer
This object renders a QR Code as a BitMatrix 2D array of greyscale values.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionencode
(String contents, BarcodeFormat format, int multiple) Encode a barcode using the default settings.encode
(String contents, BarcodeFormat format, int multiple, Hashtable hints)
-
Constructor Details
-
QRCodeWriter
public QRCodeWriter()
-
-
Method Details
-
encode
Description copied from interface:Writer
Encode a barcode using the default settings.- Specified by:
encode
in interfaceWriter
- Parameters:
contents
- The contents to encode in the barcodeformat
- The barcode format to generate- Returns:
- The generated barcode as a Matrix of unsigned bytes (0 == black, 255 == white)
- Throws:
WriterException
-
encode
public BitMatrix encode(String contents, BarcodeFormat format, int multiple, Hashtable hints) throws WriterException - Specified by:
encode
in interfaceWriter
- Parameters:
contents
- The contents to encode in the barcodeformat
- The barcode format to generatehints
- Additional parameters to supply to the encoder- Returns:
- The generated barcode as a Matrix of unsigned bytes (0 == black, 255 == white)
- Throws:
WriterException
-