com.itextpdf.text.pdf.qrcode
Class QRCodeWriter

java.lang.Object
  extended by com.itextpdf.text.pdf.qrcode.QRCodeWriter

public final class QRCodeWriter
extends 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
QRCodeWriter()
           
 
Method Summary
 ByteMatrix encode(String contents, int width, int height)
           
 ByteMatrix encode(String contents, int width, int height, Map<EncodeHintType,Object> hints)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QRCodeWriter

public QRCodeWriter()
Method Detail

encode

public ByteMatrix encode(String contents,
                         int width,
                         int height)
                  throws WriterException
Throws:
WriterException

encode

public ByteMatrix encode(String contents,
                         int width,
                         int height,
                         Map<EncodeHintType,Object> hints)
                  throws WriterException
Throws:
WriterException


Copyright © 2013. All Rights Reserved.