Computer Science Canada

Resizing images in java

Author:  Raknarg [ Fri Apr 04, 2014 3:33 pm ]
Post subject:  Resizing images in java

I've been searching for a very long time. I'm trying to resize a BufferedImage, and I have tried a variety of methods. The only problem is that every single method suggested maintains the aspect ratio of the picture. I don't want to maintain that. Is it possible to resize an image to a specific width and a specific height?

There's apparently a way to do it in the Image class, getScaledInstance, but I heard it shouldn't be used anymore.


: