public class QrcodeUtil extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
SIZE_140 |
static int |
SIZE_185 |
static int |
SIZE_220 |
static int |
SIZE_275 |
static int |
SIZE_315 |
static int |
SIZE_360 |
static int |
SIZE_95 |
| 构造器和说明 |
|---|
QrcodeUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static BufferedImage |
create(javax.servlet.http.HttpServletRequest request,
String content,
String logoPath,
int recodeSize,
Color color)
普通二维码
|
static BufferedImage |
create1(javax.servlet.http.HttpServletRequest request,
String content,
String logoPath,
int recodeSize,
Color color)
定制二维码(风格1)
|
static BufferedImage |
create2(javax.servlet.http.HttpServletRequest request,
String content,
String logoPath,
int recodeSize,
Color color)
定制二维码(风格2)
|
static BufferedImage |
create3(javax.servlet.http.HttpServletRequest request,
String content,
String logoPath,
int recodeSize,
Color color)
定制二维码(风格3)
|
static BufferedImage |
create4(javax.servlet.http.HttpServletRequest request,
String content,
String logoPath,
int recodeSize,
Color color)
定制二维码(风格4)
|
static BufferedImage |
createQRCode(javax.servlet.http.HttpServletRequest request,
String content,
String logoPath,
int recodeSize,
Color color)
生成二维码(QRCode)图片
|
public static final int SIZE_360
public static final int SIZE_315
public static final int SIZE_275
public static final int SIZE_220
public static final int SIZE_185
public static final int SIZE_140
public static final int SIZE_95
public static BufferedImage createQRCode(javax.servlet.http.HttpServletRequest request, String content, String logoPath, int recodeSize, Color color)
request - 请求对象content - 二维码图片的内容logoPath - 二维码图片中间的logo路径recodeSize - 通过QrcodeUtil.获取color - 颜色对象public static BufferedImage create(javax.servlet.http.HttpServletRequest request, String content, String logoPath, int recodeSize, Color color)
request - 请求对象content - 二维码图片的内容logoPath - 二维码图片中间的logo路径recodeSize - 通过QrcodeUtil.获取color - 颜色对象public static BufferedImage create1(javax.servlet.http.HttpServletRequest request, String content, String logoPath, int recodeSize, Color color)
request - 请求对象content - 二维码图片的内容logoPath - 二维码图片中间的logo路径recodeSize - 通过QrcodeUtil.获取color - 颜色对象public static BufferedImage create2(javax.servlet.http.HttpServletRequest request, String content, String logoPath, int recodeSize, Color color)
request - 请求对象content - 二维码图片的内容logoPath - 二维码图片中间的logo路径recodeSize - 通过QrcodeUtil.获取color - 颜色对象public static BufferedImage create3(javax.servlet.http.HttpServletRequest request, String content, String logoPath, int recodeSize, Color color)
request - 请求对象content - 二维码图片的内容logoPath - 二维码图片中间的logo路径recodeSize - 通过QrcodeUtil.获取color - 颜色对象public static BufferedImage create4(javax.servlet.http.HttpServletRequest request, String content, String logoPath, int recodeSize, Color color)
request - 请求对象content - 二维码图片的内容logoPath - 二维码图片中间的logo路径recodeSize - 通过QrcodeUtil.获取color - 颜色对象Copyright © 2018 Pivotal Software, Inc.. All rights reserved.