Trumphurst Ltd.

Submit a comment to an "Available C++ Libraries FAQ" entry

CategoryLibraries available to download (M-P)

PNGwriter - A C++ class allowing easy plotting to (and reading from) PNG images

This class, which requires libpng, allows you to plot to a 16-bit PNG file, saving it directly to disk. Plotting is as easy as specifying the red, green, blue values and the x, y coordinates of the pixel.

It includes functions for plotting simple geometric shapes (circle, rect, line), reading the colour of a pixel, reading in a whole PNG file (great for image analysis), plotting and reading in HSV colourspace and many others that might come in handy.

This class has proven tremendously useful for my own scientific simulation needs, and I would like others to benefit from its use as well.

It is available in both english and spanish, and is complemented by a PDF manual and a website with examples, a forum, and so on.

I have only tested it on Mac OS X and Debian Linux, but I don't see why it shouldn't compile on anything that has libpng.

Licensing : GNU copyleft

Do not expect an immediate response - the contents of this form will be added to a queue, which I process manually about once a week. If you don't fill in your email address correctly, you will not (obviously) get any reply at all. Other invalid information may result in a mailed request for clarification.

Enter your comment in the areas provided below. Be sure to include your name and email address.

Please don't bother trying to post spam or links to dodgy web sites - everything you post here is reviewed by a human being before being released for public viewing.

Your Name
Your Email Address

Click to submit your comment.
Up to the FAQ title page

For more information on any of Trumphurst's products and services, please

This page, and all contents, are Copyright © 1997-2021 by
Trumphurst Ltd.
The Willows
St. Martins Moor
SY10 7BH
Contact us is hosted by JumboCruiser.