I've been trying to read the boost::gil documentation, but it's somewhere between lacking, and convoluted.
Ranting aside, I need an example on how to do the following:
Create an image of, say 512x512. Fill it with red pixels. Write to PNG.
I can't find anything about doing any of that, at all, in the documentation for gil. Particularly the creating an image or filling it with pixels part.
If anyone can help, thanks.
I haven't used GIL yet, but I want to learn it as well. Having looked at the design guide and having googled up the error related to libpng, looks like the simplest example is
works for me, with
-lpng
on command line, producing this image