Displaying a PNG image

This is a discussion on Displaying a PNG image within the Windows Programming forums, part of the Platform Specific Boards category; Hi Im looking for some info about displaying a PNG image in Window Mode in a Visual C program. ( ...

  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    4

    Displaying a PNG image

    Hi
    Im looking for some info about displaying a PNG image in Window Mode in a Visual C program.

    ( I use MS-VC+ 6.0), I know GDI has some functions for loading a bitmap LoadBitmap for example, but dont know how to handle png images.

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    GDI has no intrinsic ability to handle png images. However, gdiplus does. Alternatively, use a third party library like libpng for windows or, if you're feeling particularly masochistic you could check out the png format at wotsit and do it all yourself.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Registered User
    Join Date
    Jul 2005
    Posts
    4
    yeah I compiled libpng but Im not quite sure how to use it =]

  4. #4
    Registered User Joelito's Avatar
    Join Date
    Mar 2005
    Location
    Tijuana, BC, México
    Posts
    308
    Some people say that CXImage is good enough....

  5. #5
    Registered User
    Join Date
    Jul 2005
    Posts
    4
    Yeah, but its a c++ class, and as I mentioned on the beginning, My programm is written in Visual C,

  6. #6
    Registered User Joelito's Avatar
    Join Date
    Mar 2005
    Location
    Tijuana, BC, México
    Posts
    308
    Then... I should go with libpng

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem reading tiff image files?
    By compz in forum C++ Programming
    Replies: 9
    Last Post: 10-30-2009, 05:17 AM
  2. Loading & displaying an image
    By csonx_p in forum Windows Programming
    Replies: 1
    Last Post: 06-19-2008, 07:40 AM
  3. png Image Resize
    By bhupesh.kec in forum C Programming
    Replies: 3
    Last Post: 12-06-2007, 07:52 AM
  4. Displaying an Image
    By evanman in forum C++ Programming
    Replies: 3
    Last Post: 07-07-2006, 02:04 PM
  5. Button Displaying Image
    By mrafcho001 in forum Windows Programming
    Replies: 4
    Last Post: 12-03-2005, 02:14 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21