BufferedImage i1 = ImageIO.read(new File("E:/Java/测试用图片.jpg"));
BufferedImage i2 = new BufferedImage (int x , int y, int type);
通过修改type可以改变 颜色滤镜?
i2.getGraphics().drawImage(Image i1, int x, int y);
在创建好的BufferedImage中画入载入的图片
BufferedImage i3 = i1.getSubimage(int x , int y, int width,int height);
对BufferedImage剪裁指定部分
Image i4 = i1.getScaledInstance( int x, int y, int hints);
参数hints决定了缩放方案:
Image.SCALED_AREA_AVERAGING
区域平均缩放
Image.SCALED_DEFAULT
默认
Image.SCALED_FAST
快速(不平滑)
Image.SCALED_REPLICATE
replicateScaleFilter算法
Image.SCALED_SMOOTH
平滑(不快速)