How to store images efficiently (memory-wise) while still being able to process them

Posted by Sheeo on Stack Overflow See other posts from Stack Overflow or by Sheeo
Published on 2010-03-15T23:47:23Z Indexed on 2010/03/15 23:49 UTC
Read the original article Hit count: 247

Filed under:
|
|
|

I'm working on a silverlight project where users get to create their own Collages.

The problem

When loading images into memory, I'm using BitmapImage so that they can be displayed directly with the Image control--but they're locked in afterwards. So I've tried storing them seperately aswell, but that just sucks up huge amounts of RAM.

So in short, is there a class that'll let me store JPEG images, be able to show them with the image control, and still be able to export it afterwards? All this needs to be efficient--i.e. I'd rather not want any copying to ARGB arrays or use the WriteableBitmap to copy them over.

I require to work with large collections of images, up to 300 at most.

Any help apreciated!

© Stack Overflow or respective owner

Related posts about c#

Related posts about Silverlight