Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Manipulating Icons

Status
Not open for further replies.

Beard36

Programmer
Sep 4, 2003
69
GB
A quick introduction: what i really want to be able to do is extract a specified icon from a file (.ico, .exe, .dll) and save it as a .gif file, maintaining its transparent background information (if any).

I seem to be going round in circles with this and not getting very far, I'm posting in the VB forum as I've found some code that can access the icon images and display them for me (looking round, it seems to be fairly standard code), but the question then is how do I create the gif file?

If it really came down to it, I do have a command line tool that will convert bmp to gif, so if I could create an 8bit bmp, and knew the palette index for the transparent colour, then I could use that.

This is going to be part of an automated process, so I can't really use any batch conversion gui tools or anything like that.

Has anyone got any ideas or pointers?
If you think there's a better forum to post in, that suggestion would also be welcome.

Thanks in advance to anyone who can give me a push in the right direction!
 
VB does not know how to save gifs, so you would indeed have to consider a 3rd party library or utility - unless you fancy getting your hands dirty with the GDI+ API (and even there you really need a decent type library to be able to use it from VB)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top