The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: sosolici on September 16, 2008, 04:36:02 PM

Title: png2icon.asm
Post by: sosolici on September 16, 2008, 04:36:02 PM
how can I make png as icon for my application?


Thanks

Title: Re: png2icon.asm
Post by: Mark Jones on September 16, 2008, 05:16:33 PM
Natively? It may not be possible. The LoadIcon and LoadImage APIs are rather particular about what resources and files are referenced. Of course, you could probably read a .png file and convert it to icon format, then load that as the icon. Perhaps try the GDI+ libs, there might be something in there that can help.

See:
http://msdn.microsoft.com/en-us/library/ms648072.aspx
http://msdn.microsoft.com/en-us/library/ms648045(VS.85).aspx
http://msdn.microsoft.com/en-us/library/ms533798(VS.85).aspx
Title: Re: png2icon.asm
Post by: ragdog on September 16, 2008, 06:58:33 PM
Hi sosolici

Here is diablo2oo2´s source ,this convert a image to PNG,JPG,BMP,GIF
I hope this help you, or a other has a bmp2ico source.

greets


edit: sorry is wrong! i have read png2icon  :lol


[attachment deleted by admin]