I've left you something really tasty for dessert – Boost's Generic Image Library (GIL), which allows you to manipulate images and not care much about image formats.
Let's do something simple and interesting with it; let's make a program that negates any picture.
This recipe requires basic knowledge of C++, templates, and
Boost.Variant. The example requires linking against the PNG library.
For simplicity, we'll be working with only PNG images.
#include <boost/gil/gil_all.hpp> #include <boost/gil/extension/io/png_dynamic_io.hpp> #include <string>
typedef boost::mpl::vector< boost::gil::gray8_image_t, ...