We provided some free and open source classes to read a .zip archive bundled (or not) to an exe. You can therefore append any .zip archive to your exe, then extract any picture inside this .zip with one class.
Use the following method:
constructor TZipRead.Create(const aFileName: TFileName; ZipStartOffset, Size: cardinal);
and provide paramstr(0) - i.e. your exe - as aFileName and ZipStartOffset as a minimal original exe size: it will search for the beginning of the .zip file from this offset. Leave Size parameter as 0: it will get the size from the file size itself.
The same class can get any .zip archive embedded as a resource to your exe, if you prefer.
They are two ways of appending .zip content to an exe:
- use copy /b original.exe+pictures.zip newembedded.exe
- use the TZipWrite class provided, and its AddFromZip() method to create your exe from Delphi code: you can even compress and append your images on the fly, with no temporary pictures.zip file.
See http://synopse.info/forum/viewtopic.php?pid=163