Wow Microsoft's image list is really crap....

25 bmp's all sized at 226k width 240 x height 320 made my exe file size 10 
megs along with a 4 minute compile time clearly will not work....

I've saved my bmp's to jpg format and compiled them into a resource file 
with resource id 1 - 25 and wrote a procedure to load them from my exe file 
and final outcome is an exe file size of only 800 k...

Simple Test Of MS's Control...

I placed an imagelist component on my form changed imagelist width to 240 
and height to 320 and loaded one bmp file size 226k and compiled without 
using the imagelist at all in my exe and the file size grew from 525k to an 
astounding 1.7 megs by just placing one little bmp in that imagelist 
component of which was never used in my exe file....

Overall TJpgImgList will not use Microsoft's Image List Control because of 
several reasons,  The birth of a better imagelist component might be on the 
horizon :)_

 I haven't quite figured out the best methods for storing the images to be 
included in the exe file...

The reason for this component was for a tetris game I wrote where each level 
had a new background image upon completion of each level...

I used my quick and dirty method of building a res file with the jpg's and 
compiling into my exe and loading the images with a custom written 
procedure...

Finished File Size 823k and the game will save out the jpg's after there 
displayed...  A Client request

Sorry for the long post but I wish I knew this information before taking on 
this project...TJpgImgList is Still Under Construction....

Kind Regards...

Eric Daniels


 

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to