public class QRCodeImage
extends java.lang.Object
| Constructor and Description |
|---|
QRCodeImage() |
QRCodeImage(int width,
int height,
java.lang.String qrcontent) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
gentojpg()
將圖檔 產生成 JPG , 依設定檔名給放至正確位置
return file path name
|
com.itextpdf.text.Image |
getPdfQRCodeImage(int x,
int y) |
java.awt.image.BufferedImage |
makeqrcode() |
void |
setImagefilePathName(java.lang.String infilepathName) |
void |
setImageQrConection(java.lang.String instr)
設定 QRCODE 內容
|
void |
setImageSize(int width,
int height)
設定圖示大小
|
void |
set是否產生image(boolean in) |
public QRCodeImage()
public QRCodeImage(int width,
int height,
java.lang.String qrcontent)
public void setImageSize(int width,
int height)
width - heigh - public void setImageQrConection(java.lang.String instr)
instr - public void set是否產生image(boolean in)
public void setImagefilePathName(java.lang.String infilepathName)
public java.awt.image.BufferedImage makeqrcode()
public java.lang.String gentojpg()
throws java.io.IOException
java.io.IOExceptionpublic com.itextpdf.text.Image getPdfQRCodeImage(int x,
int y)
throws com.itextpdf.text.BadElementException
com.itextpdf.text.BadElementException