I am developing a windows forms applications and I will use sets of images (think icons). Depending on the theme, different sets of images must be chosen (I will later draw them using a Bitmap
).
I was thinking of storing the images in separate files (archive files ? dlls ?) and then loading them at runtime from the main application. What would be the most effective way to do this ?
Thank you for reading.
I shall answer this considering few scenarios.
Does this images change often? Then go for directory based approcach, where store it in a directory and load it up. May be you can have an xml having the names of these files to load. So name change in the files (images), just change xml.
These files never changes? Then just embed those as a resources, such a way it will be embedded into your exe/dll and none can corrupt the images.
Normally i have seen folks not doing embedding.