I'm trying to load TImageCollection which I want to populate and save so it's available as a resource in a data module (.dfm file). This code adds images to the image collection from selected .png files and I can see the count increase, so it is populating
ImageCollectionMS.Images.Add(ChangeFileExt(ShortName,''), Path+Shortname);`
but I need to save it as a resource. Can that be done?
This was how I did it:
Add to the ImageCollection, PNG file by PNG (using the preferred criteria):
ImageCollectionX.Add(ChangeFileExt(ShortName,''), FullFilename);
Then build dummy .DFM and .PAS files: