image list

  • Thread starter Thread starter Pascal Cloup
  • Start date Start date
P

Pascal Cloup

Hello,

Is there a simple way to save a collection of Image objects in one file?

thanks in advance

Pascal
 
Pascal Cloup said:
Is there a simple way to save a collection of Image objects in one file?

It's possible to store all images in a single bitmap file and load this file
at runtime using 'ImageList.Images.AddStrip'.
 
thanks for suggestion,

but what i want is more like a photo album also created programmatically.

I tried to use succesive calls to Image.Save( aStream, anImageFormat); this
seems to works (images seem to be pushed in the stream) but when reading the
file with Image.FromStream() i always recover the first Image.

Someone has an idea?

Pascal
 
Have you try using Serialization?
Let say you have a collection class with a list of images,
you can save this class to disk using Serialization, then Deserialize it
back
when you need it.

David
 
Back
Top