Click to See Complete Forum and Search --> : Displaying PNG image on window


vinayaka.karjigi
November 23rd, 2009, 12:43 AM
Dear All,

I have created a window with createwindow() api using vs2005 in c++ on windows Vista

My requirement is to draw png image on that window.

I tried using the LoadImage() but it takes only, .bmp,.ico,.cur files as input.

I am not using any MFC in this application

Please help me with some code snippet

with regards
Vinayaka Karjigi

Waterfox
November 23rd, 2009, 05:36 AM
Try GDI+
Too busy to be bothered with a code snippet but look at these
http://msdn.microsoft.com/en-us/library/ms533802%28VS.85%29.aspx
And for loading and displaying an image [http://msdn.microsoft.com/en-us/library/ms533830%28VS.85%29.aspx shouldn't be to hard to display a png instead of a jpg. And yes it supports PNG (as well as a heap of other formats)