> You will have to provide your code so we can see how
> you are scaling the image but assuming you are doing
> it correctly you can specify the initial and maximum
> heap sizes with -Xms and -Xmx.
what should i do if i want to scale an image of size larger than 2 or 3 MB.
When i start to scale in the begining itself it throws OutofMemoryException.
I want to rotate an image and i want to save it in a file, while performing scale,rotate, the operations should be applied on the last updated image eg(after performing scale operation then if i perform rotate operation, the effect should be on the scaled image and not on the original image).
All working fine using BufferedImage
can i perfom this operations using Graphics object alone, because this class also provides rotate method, etc.