News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

png2icon.asm

Started by sosolici, September 16, 2008, 04:36:02 PM

Previous topic - Next topic

sosolici

how can I make png as icon for my application?


Thanks


Mark Jones

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
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

ragdog

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]