Board index » delphi » Saving ImageList to file and Loading it from file

Saving ImageList to file and Loading it from file

Hello,
how can I save ImageList to file and load it from file?

Many thanks in advance.

 

Re:Saving ImageList to file and Loading it from file


I think you'll have to do each individually.

Imagelist1[1].SaveToFile('vbnvnmb.bmp');

TO LOAD - get a bitmap with Loadfrom file and you can then do
ImageList1.Add(MyBitmap)

NB - mAKE SURE THE SIZES ARE CORRECT FOR THE IMAGE LIST

Quote
"Sampras" <sampras1...@mail.ru> wrote:

>Hello,
>how can I save ImageList to file and load it from file?

>Many thanks in advance.

Re:Saving ImageList to file and Loading it from file


Thank you for your answer.
I've tried this way before, it takes a long time to load from bmp-files (I have more than 100 files).
I think if I load bitmaps into ImageList from one file, it will take much less time.

Quote
"Ant" <adcruze@tickets._No_Spam.com> wrote:

>I think you'll have to do each individually.

>Imagelist1[1].SaveToFile('vbnvnmb.bmp');

>TO LOAD - get a bitmap with Loadfrom file and you can then do
>ImageList1.Add(MyBitmap)

Other Threads