public final class ImageHelp extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static BufferedImage |
convert(BufferedImage image,
int colorSpace,
int type) |
static void |
convert(File folder,
Function<BufferedImage,BufferedImage> convert) |
static BufferedImage |
fromFile(File file,
int w,
int h,
Color backc,
Color bordc,
Color fontc,
String fontname,
int fontstyle,
int fontsize,
int strx,
int stry,
int gapy) |
static BufferedImage |
fromFile(File file,
int w,
int h,
String fontname,
int fontstyle,
int fontsize,
int strx,
int stry,
int gapy) |
static BufferedImage |
fromImages(File folder,
int w,
int h) |
static BufferedImage |
fromImages(File folder,
int w,
int h,
boolean cut,
boolean compress) |
static BufferedImage |
fromImages(Supplier<BufferedImage> supplier,
int w,
int h,
int count) |
static BufferedImage |
fromImages(Supplier<BufferedImage> supplier,
int w,
int h,
int count,
boolean cut,
boolean compress)
多张图像合并一张大图
|
static BufferedImage |
fromStr(String str,
int w,
int h,
Color backc,
Color bordc,
Color fontc,
String fontname,
int fontstyle,
int fontsize,
int strx,
int stry,
int gapx,
int gapy,
int rightlimit)
字符串转图像
|
static BufferedImage |
fromStr(String str,
int w,
int h,
String fontname,
int fontstyle) |
static BufferedImage |
fromStr(String str,
int w,
int h,
String fontname,
int fontstyle,
int fontsize,
int strx,
int stry) |
static BufferedImage |
fromStr(String str,
int w,
int h,
String fontname,
int fontstyle,
int fontsize,
int strx,
int stry,
int gapx,
int gapy,
int rightlimit) |
static BufferedImage |
fromText(File folder,
int w,
int h,
int fontsize,
boolean cut,
boolean compress,
boolean trim,
Color backc,
Color bordc,
Color fontc,
String fontname,
int fontstyle)
将指定文件中的字符串转成图片
|
static BufferedImage |
fromText(File folder,
int w,
int h,
int fontsize,
String fontname) |
static BufferedImage |
fromText(File folder,
int w,
int h,
String fontname) |
static BufferedImage |
read(byte[] bytes) |
static BufferedImage |
read(File file) |
static BufferedImage |
read(InputStream is) |
static BufferedImage |
resize(BufferedImage image,
int w,
int h) |
static BufferedImage |
scale(BufferedImage image,
double ratio) |
static BufferedImage |
scale(BufferedImage image,
double sx,
double sy) |
static BufferedImage |
scale(BufferedImage image,
int w,
int h) |
static byte[] |
strToBytes(String str) |
static byte[] |
toBytes(BufferedImage image) |
static BufferedImage |
toGray(BufferedImage image) |
static BufferedImage |
toRgb(BufferedImage image) |
static String |
toStr(BufferedImage image) |
static void |
write(BufferedImage image,
File file) |
public static BufferedImage read(InputStream is)
public static BufferedImage read(File file)
public static BufferedImage read(byte[] bytes)
public static void write(BufferedImage image, File file)
public static void convert(File folder, Function<BufferedImage,BufferedImage> convert)
public static BufferedImage convert(BufferedImage image, int colorSpace, int type)
public static BufferedImage toRgb(BufferedImage image)
public static BufferedImage toGray(BufferedImage image)
public static byte[] toBytes(BufferedImage image)
public static String toStr(BufferedImage image)
public static byte[] strToBytes(String str)
public static BufferedImage resize(BufferedImage image, int w, int h)
public static BufferedImage scale(BufferedImage image, double sx, double sy)
public static BufferedImage scale(BufferedImage image, double ratio)
public static BufferedImage scale(BufferedImage image, int w, int h)
public static BufferedImage fromStr(String str, int w, int h, Color backc, Color bordc, Color fontc, String fontname, int fontstyle, int fontsize, int strx, int stry, int gapx, int gapy, int rightlimit)
public static BufferedImage fromStr(String str, int w, int h, String fontname, int fontstyle, int fontsize, int strx, int stry, int gapx, int gapy, int rightlimit)
public static BufferedImage fromStr(String str, int w, int h, String fontname, int fontstyle, int fontsize, int strx, int stry)
public static BufferedImage fromStr(String str, int w, int h, String fontname, int fontstyle)
public static BufferedImage fromImages(Supplier<BufferedImage> supplier, int w, int h, int count, boolean cut, boolean compress)
public static BufferedImage fromImages(Supplier<BufferedImage> supplier, int w, int h, int count)
public static BufferedImage fromImages(File folder, int w, int h, boolean cut, boolean compress)
public static BufferedImage fromImages(File folder, int w, int h)
public static BufferedImage fromText(File folder, int w, int h, int fontsize, boolean cut, boolean compress, boolean trim, Color backc, Color bordc, Color fontc, String fontname, int fontstyle)
public static BufferedImage fromText(File folder, int w, int h, int fontsize, String fontname)
public static BufferedImage fromText(File folder, int w, int h, String fontname)
public static BufferedImage fromFile(File file, int w, int h, Color backc, Color bordc, Color fontc, String fontname, int fontstyle, int fontsize, int strx, int stry, int gapy)
public static BufferedImage fromFile(File file, int w, int h, String fontname, int fontstyle, int fontsize, int strx, int stry, int gapy)
Copyright © 2022. All rights reserved.