public class QrCodeUtils extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
decode(File file)
识别二维码
|
static void |
encode(File file,
int height,
int width,
String content,
File logoImg)
生成带有logo图片的二维码
|
static void |
encode(File file,
int height,
int width,
String content,
String format)
生成二维码
|
static void |
encode(File file,
String content,
File logoImg)
生成带有logo图片的二维码
|
static void |
encode(File file,
String content,
String format)
生成二维码
|
public static void encode(File file, String content, String format) throws IOException, com.google.zxing.WriterException
file - 生成的二维码文件content - 二维码内容format - 图片格式IOException - .com.google.zxing.WriterException - .public static void encode(File file, int height, int width, String content, String format) throws IOException, com.google.zxing.WriterException
file - 生成的二维码文件height - 二维码高度width - 二维码宽度content - 二维码内容format - 图片格式IOException - .com.google.zxing.WriterException - .public static void encode(File file, String content, File logoImg) throws IOException, com.google.zxing.WriterException
file - 生成的二维码文件content - 二维码内容logoImg - 二维码logo图片IOException - .com.google.zxing.WriterException - .public static void encode(File file, int height, int width, String content, File logoImg) throws IOException, com.google.zxing.WriterException
file - 生成的二维码文件height - 二维码高度width - 二维码宽度content - 二维码内容logoImg - 二维码logo图片IOException - .com.google.zxing.WriterException - .public static String decode(File file) throws IOException, com.google.zxing.NotFoundException
file - 二维码文件内容IOException - .com.google.zxing.NotFoundException - 未找到有效二维码Copyright © 2020. All rights reserved.