hello everybody!

i need some help with image processing, and i am unexpeienced in the area!

i to work with very large images (3000x3000 pixels) and they are loaded form
the file. images don't use many colors, 256 is enough. i use jpeg file
(because size is much smaller than gif) and decode it into BufferedImage.
everything is fine but memory usage is tremendous (50MB). i think the
problem is that BufferedImage has got 24bit color model.

i don't need so many colors, and i'd like to know is it possible to load
image from jpg file using com.sun.image.codec.jpeg
.JPEGDecoder into BufferedImage with smaller size using perhaps
IndexColorModel or something like this. please post some code samples
because 2D API is huge and i am getting lost in it.

thanks!


dario

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx

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

Reply via email to