inline void write_view( Device& device , const View& view , const FormatTag& tag , typename enable_if< typename mpl::and_< typename detail::is_adaptable_output_device< FormatTag , Device >::type , typename is_format_tag< FormatTag >::type , typename is_write_supported< typename get_pixel_type< View >::type , FormatTag >::type >::type >::type* /* ptr */ = 0 ) { typedef typename detail::is_adaptable_output_device< FormatTag , Device >::device_type dev_t; dev_t dev( device ); write_view( dev , view , tag ); }
inline void tiff_write_view( const String& filename , const View& view ) { write_view( filename , view , tiff_tag() ); }
inline void bmp_write_view( const String& filename , const View& view ) { write_view( filename , view , bmp_tag() ); }
inline void pnm_write_view( const String& filename , const View& view ) { write_view( filename , view , pnm_tag() ); }
inline void png_write_view( const String& filename , const View& view ) { write_view( filename , view , tag_t() ); }
inline void write_view( const String& file_name , const any_image_view< Views >& views , const FormatTag& tag , typename enable_if< typename mpl::and_< typename detail::is_supported_path_spec< String >::type , typename is_format_tag< FormatTag >::type >::type >::type* /* ptr */ = 0 ) { detail::file_stream_device<FormatTag> device( detail::convert_to_string( file_name ) , typename detail::file_stream_device<FormatTag>::write_tag() ); write_view( device , views , tag ); }
inline void write_view( Device& device , const any_image_view< Views >& views , const FormatTag& tag , typename enable_if< typename mpl::and_< typename detail::is_adaptable_output_device< FormatTag , Device >::type , typename is_format_tag< FormatTag >::type >::type >::type* /* ptr */ = 0 ) { typedef typename detail::is_adaptable_output_device< FormatTag , Device >::device_type dev_t; dev_t dev( device ); write_view( dev , views , tag ); }
inline void write_view( const String& file_name , const View& view , const image_write_info< FormatTag, Log >& info , typename enable_if< typename mpl::and_< typename detail::is_supported_path_spec< String >::type , typename is_format_tag< FormatTag >::type , typename is_write_supported< typename get_pixel_type< View >::type , FormatTag >::type >::type >::type* /* ptr */ = 0 ) { detail::file_stream_device< FormatTag > device( detail::convert_to_string( file_name ) , typename detail::file_stream_device< FormatTag >::write_tag() ); write_view( device , view , info ); }