public abstract class ImageOpt extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
captureScreen(String fileName)
抓屏程序 算法来做网络,测试通过
|
static void |
createThumbnail(String filename,
int thumbWidth,
int thumbHeight,
int quality,
String outFilename)
创建图片的缩略图 ,算法来做网络,测试通过
|
static int[] |
getRGB(BufferedImage image) |
static int[] |
getRGB(BufferedImage image,
int x,
int y,
int width,
int height,
int[] pixels) |
static BufferedImage |
saveSubImage(BufferedImage image,
Rectangle subImageBounds)
对图像进行
|
static List<BufferedImage> |
splitImage(BufferedImage image,
int divisions) |
public static void createThumbnail(String filename, int thumbWidth, int thumbHeight, int quality, String outFilename) throws InterruptedException, FileNotFoundException, IOException
filename - 文件名称thumbWidth - 缩略图宽度thumbHeight - 缩略图高度quality - 缩略图质量outFilename - 输出文件名InterruptedException - 分析异常FileNotFoundException - 文件读取异常IOException - IOpublic static void captureScreen(String fileName) throws AWTException, IOException
fileName - 文件名称AWTException - 异常IOException - 异常public static BufferedImage saveSubImage(BufferedImage image, Rectangle subImageBounds) throws IOException
image - 图片subImageBounds - 图片区域IOException - 异常public static List<BufferedImage> splitImage(BufferedImage image, int divisions) throws IOException
IOExceptionpublic static int[] getRGB(BufferedImage image)
public static int[] getRGB(BufferedImage image, int x, int y, int width, int height, int[] pixels)
Copyright © 2018 江苏南大先腾信息产业股份有限公司. All rights reserved.