libpngã£ã¦C++ friendlyãããªããããã£ã¦åãã¦ããããid:faith_and_braveããã«ãããã§Boost.GILã§ãããã¨è¨ãããã®ã§ãä½ã£ã¦ã¿ãã #include <utility> #include <boost/gil/gil_all.hpp> #include <boost/gil/extension/io/png_io.hpp> int main() { namespace gil = boost::gil; gil::point2<ptrdiff_t> dim(400, 400); gil::gray8_image_t img(dim); auto view = gil::view(img); for (ptrdiff_t i = 0; i < dim.y; ++i) { for (ptrdiff_t j = 0; j < dim.x; ++j)
{{#tags}}- {{label}}
{{/tags}}