public class ImageJDKUtil extends Object
| Constructor and Description |
|---|
ImageJDKUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cutting(String src,
String dest,
int x,
int y,
int w,
int h) |
static void |
flip(String src,
String dest,
boolean flipX) |
static String[] |
getAllFontNames() |
static Set<String> |
getAvailableFormat() |
static Font |
getFont(String fontName) |
static Font[] |
getFonts(String fontName) |
static String[] |
getSystemFontNames() |
static Mapx<String,Font> |
getUserFonts() |
static BufferedImage |
gray(BufferedImage srcImage) |
static void |
grayImageFile(String srcFile,
String destFile) |
static void |
main(String[] args) |
static void |
pressImage(String targetImg,
String pressImg) |
static void |
pressImage(String targetImg,
String pressImg,
float opicty,
int x,
int y) |
static void |
pressImage(String targetImg,
String pressImg,
int position) |
static void |
pressText(String targetImg,
String pressText,
Font font,
Color color,
float opicty,
int x,
int y) |
static void |
pressText(String targetImg,
String pressText,
Font font,
Color color,
int outlineSize,
Color outlineColor,
float opicty,
int x,
int y) |
static BufferedImage |
readImage(String srcFile) |
static void |
rotate(String src,
String dest,
int degree) |
static BufferedImage |
scaleFixed(BufferedImage srcImage,
int width,
int height,
boolean keepRate) |
static void |
scaleFixedImageFile(String srcFile,
String destFile,
int width,
int height) |
static void |
scaleFixedImageFile(String srcFile,
String destFile,
int width,
int height,
boolean keepRate) |
static BufferedImage |
scaleRate(BufferedImage srcImage,
double rate) |
static BufferedImage |
scaleRate(BufferedImage srcImage,
double xscale,
double yscale,
RenderingHints hints) |
static BufferedImage |
scaleRate(BufferedImage srcImage,
int width,
int height) |
static void |
scaleRateImageFile(String srcFile,
String destFile,
double rate) |
static void |
scaleRateImageFile(String srcFile,
String destFile,
int width,
int height) |
static void |
transform(File src,
File dest) |
static void |
transform(File src,
File dest,
int nw) |
static void |
txtToImage(File dest,
String txt,
Font font,
Color fontColor,
Color bgColor) |
static void |
txtToImage(OutputStream out,
String txt,
Font font,
Color fontColor,
Color bgColor,
com.alibaba.simpleimage.ImageFormat imageFormat) |
static BufferedImage |
txtToImage(String text,
Font font,
Color fontColor,
Color bgColor,
String align,
int fontWidth,
int fontHeight,
int letterSpacing,
int imageWidth,
int imageHeight,
com.alibaba.simpleimage.ImageFormat imageFormat) |
static void |
txtToImage(String dest,
String txt,
Font font,
Color fontColor,
Color bgColor) |
static void |
writeImageFile(String fileName,
BufferedImage image) |
public static BufferedImage scaleRate(BufferedImage srcImage, double rate)
public static BufferedImage scaleRate(BufferedImage srcImage, int width, int height)
public static BufferedImage gray(BufferedImage srcImage)
public static BufferedImage scaleRate(BufferedImage srcImage, double xscale, double yscale, RenderingHints hints)
public static BufferedImage scaleFixed(BufferedImage srcImage, int width, int height, boolean keepRate)
public static void scaleFixedImageFile(String srcFile, String destFile, int width, int height) throws IOException
IOExceptionpublic static void scaleFixedImageFile(String srcFile, String destFile, int width, int height, boolean keepRate) throws IOException
IOExceptionpublic static BufferedImage readImage(String srcFile) throws IOException
IOExceptionpublic static void scaleRateImageFile(String srcFile, String destFile, int width, int height) throws IOException
IOExceptionpublic static void scaleRateImageFile(String srcFile, String destFile, double rate) throws IOException
IOExceptionpublic static void grayImageFile(String srcFile, String destFile) throws IOException
IOExceptionpublic static void writeImageFile(String fileName, BufferedImage image) throws IOException
IOExceptionpublic static final void pressImage(String targetImg, String pressImg, float opicty, int x, int y)
public static void pressText(String targetImg, String pressText, Font font, Color color, float opicty, int x, int y) throws IOException
IOExceptionpublic static void pressText(String targetImg, String pressText, Font font, Color color, int outlineSize, Color outlineColor, float opicty, int x, int y)
public static String[] getSystemFontNames()
public static String[] getAllFontNames()
public static void txtToImage(String dest, String txt, Font font, Color fontColor, Color bgColor) throws Exception
Exceptionpublic static void txtToImage(File dest, String txt, Font font, Color fontColor, Color bgColor) throws Exception
Exceptionpublic static void txtToImage(OutputStream out, String txt, Font font, Color fontColor, Color bgColor, com.alibaba.simpleimage.ImageFormat imageFormat) throws Exception
Exceptionpublic static BufferedImage txtToImage(String text, Font font, Color fontColor, Color bgColor, String align, int fontWidth, int fontHeight, int letterSpacing, int imageWidth, int imageHeight, com.alibaba.simpleimage.ImageFormat imageFormat)
Copyright © 2016. All Rights Reserved.