[solved]Re-scaling images

What is the best way in java to scale an image ?

Say you wanted to load an folder of images and for each one you want the image to be made square whatever the dimensions :
eg rescale the width of 256 so it matches the height of 512. It needs to be interpolated (eg Cubic) and not just stretched. Preferably in console mode.

[edit]Nevermind found out how to do it. ::slight_smile: