java怎么改变图形大小
收起
云计算小粉
2018-05-10 20:07:14
1713
0
1
条回答
写回答
取消
提交回答
-
BufferedImage bi = ImageIO.read(new File(srcFileName));
BufferedImage tag=new BufferedImage(width,height, BufferedImage.TYPE_INT_RGB);
tag.getGraphics().drawImage(bi, 0, 0, width, height, null);
ImageIO.write(tag, "jpg", new File(tagFileName));
2019-07-17 22:15:05