PDA

View Full Version : Saving TImage as a valid Icon.



jim
12-04-2005, 06:20 PM
How can i make it so when i press button1, the timage (32,32 pix) is saved as a valid icon file. ive tried saving them, and when i go to use it, it says 'Not a Valid Icon File', please help.
thank you. :)

cairnswm
12-04-2005, 06:36 PM
Do a search for TjvIcon. Its the only Delphi source I've come accross for creating Icon files from images.

Crisp_N_Dry
13-04-2005, 05:38 PM
If you're prepared to put the extra work in some .Ico file format documentation is available from Wotsit.Org
http://www.wotsit.org/download.asp?f=icons
It will mean you gotta write your own routines to convert from bitmap to icon
but the docs do contain some C source code but it shouldn't be too difficult to convert, it looks pretty basic. Hope this helps.