1
我想调整一个BufferedImage的大小,这个BufferedImage是使用带有AffineTransform对象的图形绘制方法绘制的。Resizing BufferedImage
AffineTransform at = new AffineTransform();
at.scale(1, -1);
at.translate((int) xPos - xIncr, -(int)yPos);
((Graphics2D) g).drawImage(line, at, null);
我怎样才能调整图像大小,比我想要绘制的区域小? 感谢您的帮助。
好的,谢谢你,我想避免计算比例因子,但我想没有选择。谢谢。 – wotan2009