Title: Out of topic: How to store and serialize images economically

Hello all,

Even though this is not strictly a Java3D question I think there might be people who know or are interested in this question. Sorry for the rest.

In our application we are taking snapshots from Canvas3D and we maintain them as BufferedImages in the memory. I have found out that each image takes quite a lot of memory and when we save the images during serialization as pixels, the file size is enourmous. I'm also sure that these pixels contain lots of redundancy and they could easily be compressed. So I have two questions:

What is an economic format to store an image in the memory while it's not being displayed?

How can I compress the image when it is being serialized?

Somebody might say that I could compress my whole serialized file, but I'd rather not start from that, since it might hide other problems under the carpet.

Thanks,

Pasi

Reply via email to