public class QrcodeUtils extends Object
Created by Binary Wang on 2017-01-05.
| 构造器和说明 |
|---|
QrcodeUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
createQrcode(String content,
File logoFile)
创建生成默认高度(400)的二维码图片
可以指定是否贷logo
|
static byte[] |
createQrcode(String content,
int length,
File logoFile)
根据指定边长创建生成的二维码
|
static String |
decodeQrcode(File file)
解析二维码
|
public static byte[] createQrcode(String content, int length, File logoFile)
content - 二维码内容length - 二维码的高度和宽度logoFile - logo 文件对象,可以为空public static byte[] createQrcode(String content, File logoFile)
content - 二维码内容logoFile - logo 文件对象,可以为空public static String decodeQrcode(File file) throws IOException, com.google.zxing.NotFoundException
file - 二维码文件内容IOExceptioncom.google.zxing.NotFoundExceptionCopyright © 2017. All rights reserved.