From: Alexander S. <ale...@gm...> - 2007-03-24 19:14:48
|
Hi, I would like to announce the availability of a preliminary version of png++, my C++ wrapper for libpng. When I've come to libpng I've noticed that it takes a lot of code just to load a PNG image and handle all error conditions gracefully. I was working on a C++ project and hence sought for a way to use libpng the C++ way. The result is png++. The libpng's example routine for loading an image is about 300 lines in C. With png++ you can load an image in just a single line of C++ code, like this: png::image< png::rgb_pixel > my_image("myimage.png"); Storing the image on disc is also accomplished in a single line, like this: my_image.write("myimage2.png"); The project aims to provide simple yet powerful C++ wrapper for libpng. It has numerous limitations, but would like to hear from people what do they think about the project before implementing the lacking features. It is known to be incomplete, undocumented, untested and may be buggy. However, it works for me, and I would be pleased if it would work for others too. I plan to setup the project on Savannah (http://savannah.nongnu.org/), however it is not approved yet. Please follow this link for more information: http://www.shulgin.org.ua/~shulz/png++/ Here is the direct download link: http://www.shulgin.org.ua/~shulz/png++/png++-0.1.0.tar.gz Please note that png++ is distributed under a modified variant of BSD license. Comments, suggestions, bug reports are sincerely welcome :-) Happy hacking! -- Alex Shulgin PS: the host might be down from 22:00 to 08:00 UTC -- it's one of my home PCs. You still may request a source package by e-mail, tough :-) |