i would like to resize a BufferedImage that is draw using the Graphics drawing method with AffineTransform object.
AffineTransform at = new AffineTransform();
at.scale(1, -1);
at.translate((int) xPos - xIncr, -(int)yPos);
((Graphics2D) g).drawImage(line, at, null);
How could i resize the image, that is smaller than the area i want it to be draw in ?
Thanks for help.
Given that you’re already drawing the image with an
AffineTransform, why not just apply anotherscaleto expand your image by the desired amount?