I want to create a png image from my C ++ program (and save it to disk). I need only the most basic operations, such as drawing a line, drawing a circle, filling a rectangle, filling a circle, etc. I want to use a very small (ideally 1 header and 1 source file) and a library for developers, which is an open source and cross platform (requires Windows and Unix).
I found PNGwriter, but it does not compile for me on Ubuntu 12.04 with g ++ 4.6.3 (binding problem) and requires the installation of many other libraries.
What is the smallest library that meets these basic requirements?
source share