Resizing images in java
Author |
Message |
Raknarg
![](http://compsci.ca/v3/uploads/user_avatars/3745510004d8be6689b92f.jpg)
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
|
|