CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2009
    Posts
    1

    Question Displaying PNG image on window

    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

  2. #2
    Join Date
    Sep 2009
    Posts
    32

    Re: Displaying PNG image on window

    Try GDI+
    Too busy to be bothered with a code snippet but look at these
    http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx
    And for loading and displaying an image [http://msdn.microsoft.com/en-us/libr...8VS.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)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured