|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itextpdf.text.pdf.BarcodeQRCode
public class BarcodeQRCode
A QRCode implementation based on the zxing code.
| Constructor Summary | |
|---|---|
BarcodeQRCode(java.lang.String content,
int width,
int height,
java.util.Map<EncodeHintType,java.lang.Object> hints)
Creates the QR barcode. |
|
| Method Summary | |
|---|---|
java.awt.Image |
createAwtImage(java.awt.Color foreground,
java.awt.Color background)
Creates a java.awt.Image. |
Image |
getImage()
Gets an Image with the barcode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BarcodeQRCode(java.lang.String content,
int width,
int height,
java.util.Map<EncodeHintType,java.lang.Object> hints)
content - the text to be encodedwidth - the barcode widthheight - the barcode heighthints - modifiers to change the way the barcode is create. They can be EncodeHintType.ERROR_CORRECTION
and EncodeHintType.CHARACTER_SET. For EncodeHintType.ERROR_CORRECTION the values can be ErrorCorrectionLevel.L, M, Q, H.
For EncodeHintType.CHARACTER_SET the values are strings and can be Cp437, Shift_JIS and ISO-8859-1 to ISO-8859-16. The default value is
ISO-8859-1.
WriterException| Method Detail |
|---|
public Image getImage()
throws BadElementException
Image with the barcode.
Image
BadElementException - on error
public java.awt.Image createAwtImage(java.awt.Color foreground,
java.awt.Color background)
java.awt.Image.
foreground - the color of the barsbackground - the color of the background
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||