Thread: Displaying a PNG image

  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
    310
    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
    310
    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, 04:17 AM
  2. Loading & displaying an image
    By csonx_p in forum Windows Programming
    Replies: 1
    Last Post: 06-19-2008, 06: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, 01:04 PM
  5. Button Displaying Image
    By mrafcho001 in forum Windows Programming
    Replies: 4
    Last Post: 12-03-2005, 02:14 PM