public abstract class QrCodeGenerator extends Object
| Constructor and Description |
|---|
QrCodeGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static BufferedImage |
createQRImage(QrCodeConfig qrCodeConfig)
生成二维码流
|
static BufferedImage |
createQRImage(String message)
生成二维码流
|
static void |
insertLogo(BufferedImage qrCode,
BufferedImage logImage)
在图片中间,插入圆角的logo
|
public static void insertLogo(BufferedImage qrCode, BufferedImage logImage)
qrCode - 原图logImage - imagepublic static BufferedImage createQRImage(QrCodeConfig qrCodeConfig) throws IOException, com.google.zxing.WriterException
qrCodeConfig - 二维码配置信息IOException - 异常com.google.zxing.WriterException - 异常public static BufferedImage createQRImage(String message) throws IOException, com.google.zxing.WriterException
message - 二维码配置信息IOException - 异常com.google.zxing.WriterException - 异常Copyright © 2024 江苏南大先腾信息产业股份有限公司. All rights reserved.