PDA

Click to See Complete Forum and Search --> : Creating Icons


pax
Feb 19th, 2002, 07:28 AM
Hi all.

I'm trying to program my own icon editor in VB. My problem is saving the icon in the right format. If I just use SAVEPICTURE it's saved in BMP format. Further more it's missing the transparent color.
I have tried adding the image to an imagelist and then use extracticon, and the save it. This works fine, but my problem is, that i would like to be able to use lots of color, and the imagelist changes some of my colors.

So my question is : Does anyone know how to save a standard picture in ICO format with transparent background and everything.

I have also been playing around a little with CREATEICONINDIRECT and CREATECOMPATIBLEBITMAP but I can't get that to work.

Si_the_geek
Feb 19th, 2002, 07:51 AM
try looking at http://www.wotsit.org for file format information.. it's probably easy enough for icon files to just write a save routine yourself.

Megatron
Feb 20th, 2002, 05:39 PM
See this link (http://www.vbforums.com/showthread.php?s=&threadid=35431).

vbud
Feb 21st, 2002, 02:40 AM
I have the same problem, the program I wrote can create icons alright but I can`t get it to make them transparent. Any help would be much appreciated on that part...

:(

dave555
Jul 5th, 2002, 08:56 AM
try this program i made to convert an icon from a saved .exe file to a saved icon file.

dave555
Jul 5th, 2002, 09:03 AM
try this program i made to convert an icon from a saved .exe file to a saved icon file.

dave555
Jul 5th, 2002, 09:46 AM
try this program i made to convert an icon from a saved .exe file to a saved icon file.

dave555
Jul 5th, 2002, 09:53 AM
sorry about the repeated messages, but i am having problems uploading replies.