public class Images extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static com.google.zxing.common.BitMatrix |
createMatrix(String content,
int width,
int height,
com.google.zxing.qrcode.decoder.ErrorCorrectionLevel level,
com.google.zxing.BarcodeFormat format) |
static void |
drawLogo(BufferedImage image,
Image logo) |
static BufferedImage |
getBufferedImage(File imageFile) |
static BufferedImage |
getBufferedImage(String imagePath) |
static Image |
getImage(URL url) |
static BufferedImage |
getQrcodeImage(String content) |
static BufferedImage |
getQrcodeImage(String content,
Image logo) |
static BufferedImage |
getQrcodeImage(String content,
int width,
int height,
com.google.zxing.qrcode.decoder.ErrorCorrectionLevel level,
Image logo) |
static BufferedImage |
getQrcodeImage(String content,
int width,
int height,
Image logo) |
static InputStream |
getQrcodeStream(String content) |
static BufferedImage |
toBufferedImage(com.google.zxing.common.BitMatrix matrix) |
static BufferedImage |
toBufferedImage(Image image) |
static File |
toFile(RenderedImage image,
String imagePath) |
static File |
toFile(RenderedImage image,
String format,
File imageFile) |
static File |
toFile(RenderedImage image,
String format,
String imagePath) |
static InputStream |
toInputStream(RenderedImage image) |
static InputStream |
toInputStream(RenderedImage image,
String format) |
public static BufferedImage toBufferedImage(Image image)
public static BufferedImage getBufferedImage(String imagePath)
public static BufferedImage getBufferedImage(File imageFile)
public static InputStream getQrcodeStream(String content)
public static BufferedImage getQrcodeImage(String content)
public static BufferedImage getQrcodeImage(String content, Image logo)
public static BufferedImage getQrcodeImage(String content, int width, int height, Image logo)
public static BufferedImage getQrcodeImage(String content, int width, int height, com.google.zxing.qrcode.decoder.ErrorCorrectionLevel level, Image logo)
public static com.google.zxing.common.BitMatrix createMatrix(String content, int width, int height, com.google.zxing.qrcode.decoder.ErrorCorrectionLevel level, com.google.zxing.BarcodeFormat format)
public static BufferedImage toBufferedImage(com.google.zxing.common.BitMatrix matrix)
public static InputStream toInputStream(RenderedImage image)
public static InputStream toInputStream(RenderedImage image, String format)
public static File toFile(RenderedImage image, String imagePath)
public static File toFile(RenderedImage image, String format, String imagePath)
public static File toFile(RenderedImage image, String format, File imageFile)
public static void drawLogo(BufferedImage image, Image logo)
Copyright © 2024. All rights reserved.