BufferedImage

I am rotating and scaling a bufferedImaga when it is scaled to a certain level i am getting outof memory error, how can i avoid that, i want to scale the image to a large extent is it possible?
[200 byte] By [aruntsa] at [2007-10-3 4:03:52]
# 1
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.
YoGeea at 2007-7-14 22:02:59 > top of Java-index,Java Essentials,Java Programming...
# 2

> 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.

aruntsa at 2007-7-14 22:02:59 > top of Java-index,Java Essentials,Java Programming...
# 3
> When i start to scale in the begining itself it throws OutofMemoryExceptionSee reply 1.
camickra at 2007-7-14 22:02:59 > top of Java-index,Java Essentials,Java Programming...
# 4

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.

aruntsa at 2007-7-14 22:02:59 > top of Java-index,Java Essentials,Java Programming...