Ticket #15 (closed defect: fixed)
use streams to write image data
| Reported by: | nick@… | Owned by: | artem |
|---|---|---|---|
| Priority: | Milestone: | 0.5.0 | |
| Component: | Core Library | Version: | SVN Trunk |
| Severity: | Minor | Keywords: | stream i/o image |
| Cc: | Patch Needs Improvement: | ||
| Needs Docmentation: | Has Patch?: | ||
| Design Decision Needed: |
Description
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<Image32> r(m,buf); r.apply(); save_to_file<ImageData?32>(pngfile,"png",buf.data());
As well as save_to_file, have an output_to_stream function such as:
output_to_stream<ImageData?32> (std::cout, "png", buf.data());
Change History
Note: See
TracTickets for help on using
tickets.
