mapnik-org/mapnik — Issue #14: use streams to write image data
Author: artemp
Created: 2011-10-11 07:30:41+00:00
State: open
Labels: Core_Library

It would be good to be able to output the raw data of a map image to a given output stream in the same way that you can output to file. For example:

Image32 buf(m.getWidth(),m.getHeight());
agg_renderer r(m,buf);
r.apply();
save_to_file(pngfile,"png",buf.data());

As well as save_to_file, have an output_to_stream function such as:

output_to_stream (std::cout, "png", buf.data());