Save and Load PNG with Windows API and C/C++

03/11/2007 - 14:36 von Rene Grothmann | Report spam
I have a huge application for windows, written in the past 20 years. I
am using the Win32 API (no MFC) currently (as introduced with Windows
98), and a home made bitmap saving routine. However, I want to save a
memory bitmap to PNG, and also load PNG files to memory bitmaps.
Currently, the development is based on Microsoft Visual Studio. The
language is C++.

What would be my easiest option? My dream come true would be a ready
to use code to do the jobs. It should be free and open source. The
Windows API does not seem to include functions for this, or I did not
find them. MFC contains an image class, but it seems overkill, and I
do not know about NT compliance using GDI+.

Thanks for any hints. And sorry, if I missed an obvious solution.
 

Lesen sie die antworten

#1 Wolfgang Fellger
03/11/2007 - 14:59 | Warnen spam
Rene Grothmann schrieb:

I have a huge application for windows, written in the past 20 years. I
am using the Win32 API (no MFC) currently (as introduced with Windows
98), and a home made bitmap saving routine. However, I want to save a
memory bitmap to PNG, and also load PNG files to memory bitmaps.
Currently, the development is based on Microsoft Visual Studio. The
language is C++.



What about http://www.libpng.org/pub/png/libpng.html ?

Wolfgang Fellger

Ähnliche fragen