public class QRcodeFunctions extends AbstractFunctionRule
LOGGER| 构造器和说明 |
|---|
QRcodeFunctions() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
createQRCode(QrcodeModel model)
生成二维码图片
|
static String |
decode(InputStream input)
二维码解码
|
protected static com.google.zxing.common.BitMatrix |
deleteWhite(com.google.zxing.common.BitMatrix matrix)
移除白边
|
protected static void |
encode(BufferedImage image,
QrcodeModel model)
创建logo
|
public static boolean createQRCode(QrcodeModel model) throws com.google.zxing.WriterException, IOException
model - 创建实体类com.google.zxing.WriterExceptionIOExceptionprotected static void encode(BufferedImage image, QrcodeModel model) throws IOException
image - model - IOExceptionpublic static String decode(InputStream input) throws com.google.zxing.NotFoundException, IOException
input - 二维码文件流com.google.zxing.NotFoundExceptionIOExceptionprotected static com.google.zxing.common.BitMatrix deleteWhite(com.google.zxing.common.BitMatrix matrix)
matrix - Copyright © 2019. All rights reserved.