But package files never get saved or loaded. (I've got images in imagelist, cause I can draw them).

This SaveToFile works only when I add images to component (before running application). After such save it is possible to load these images back to component.

I don't know to add or replace image. Deleting existing images works fine.

How can I dynamically add images _and_ save them?

Speeeder

02-08-2006, 01:50 PM

uhm, haven't used DXImageLists for any dinamic loading, buuut... I faintly remember having to load to a DIB object and put the image in from there... However for dinamicly loading pics, I'd say you should use a list of TDirectDrawSurfaces... You can work with them more or less how you'd work with TBitmaps and the Windows Canvas... (In other words, using the DXDraw1.Surface methods to draw, supplying a TDirectDrawSurface)