diff --git a/include/mapnik/image_util.hpp b/include/mapnik/image_util.hpp index dcaff671d..96856bdb7 100644 --- a/include/mapnik/image_util.hpp +++ b/include/mapnik/image_util.hpp @@ -103,6 +103,23 @@ MAPNIK_DECL std::string save_to_string(T const& image, std::string const& type, rgba_palette const& palette); +template +MAPNIK_DECL void save_to_stream +( + T const& image, + std::ostream & stream, + std::string const& type, + rgba_palette const& palette +); + +template +MAPNIK_DECL void save_to_stream +( + T const& image, + std::ostream & stream, + std::string const& type +); + template void save_as_png(T const& image, std::string const& filename, @@ -203,7 +220,7 @@ void add_border(T & image) -/////////// save_to_file //////////////////////////////////////////////// +/////////// save_to_file ////////////////////////////////////////////////// MAPNIK_DECL void save_to_file(image_32 const& image, std::string const& file); @@ -217,7 +234,7 @@ MAPNIK_DECL void save_to_file (image_32 const& image, std::string const& type, rgba_palette const& palette); -////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////// MAPNIK_DECL std::string save_to_string(image_32 const& image, @@ -229,6 +246,17 @@ MAPNIK_DECL std::string save_to_string(image_32 const& image, /////////////////////////////////////////////////////////////////////////// +MAPNIK_DECL void save_to_stream(image_32 const& image, + std::ostream & stream, + std::string const& type, + rgba_palette const& palette); + +MAPNIK_DECL void save_to_stream(image_32 const& image, + std::ostream & stream, + std::string const& type); + +/////////////////////////////////////////////////////////////////////////// + #ifdef _MSC_VER template MAPNIK_DECL void save_to_file(image_data_32 const&, std::string const&, @@ -276,6 +304,32 @@ template MAPNIK_DECL std::string save_to_string > (ima template MAPNIK_DECL std::string save_to_string > (image_view const&, std::string const&, rgba_palette const&); + +template MAPNIK_DECL void save_to_stream( + image_data_32 const& image, + std::ostream & stream, + std::string const& type, + rgba_palette const& palette +); + +template MAPNIK_DECL void save_to_stream( + image_data_32 const& image, + std::ostream & stream, + std::string const& type +); + +template MAPNIK_DECL void save_to_stream > ( + image_view const& image, + std::ostream & stream, + std::string const& type, + rgba_palette const& palette +); + +template MAPNIK_DECL void save_to_stream > ( + image_view const& image, + std::ostream & stream, + std::string const& type +); #endif }