Hello All,
I use the following code to read an image:
ImageIcon ic = new ImageIcon(fileName);
Image image = ic.getImage();
Then I use the following code to draw the image in the paint method:
g2.drawImage( image, x, y, wd, ht, this );
My problem is that when the jpeg input file is about 1-2 MB, the memory
usage of this program goes upto 250-300 MB. Is this normal? Is there any way
to reduce the memory usage.
Thanks for any input.
-Jayant Shekhar.
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".