The .resx Files of the .NET Framework provide a very efficient method to provide Images to .NET applications. The SmartComponent Library provides tooling to build .resx Files from existing .png Files as well as API's to use those files at runtime instead of the individual .png Files.
Creating .resx Files from existing .png Files
The procedure Consultingwerk/Windows/Util/ImageCache/cache-images.p is capable of adding all Image files found in a directory and sub-directories to a new .resx File. The procedure is designed to be executed from an ANT Script and the PCTRun task. The ANT script in Consultingwerk/Windows/Util/ImageCache/build.xml is an example for how this procedure can be used. The ANT file cna be invoked like this
ant cache-images -f Consultingwerk\Windows\Util\ImageCache\build.xml -Dfilename=Consultingwerk\Windows\Images\images.resx