Пример #1
0
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
              );
}
Пример #2
0
inline
void tiff_write_view( const String& filename
                    , const View&   view
                    )
{
    write_view( filename
              , view
              , tiff_tag()
              );
}
Пример #3
0
inline
void bmp_write_view( const String& filename
                   , const View&   view
                   )
{
    write_view( filename
              , view
              , bmp_tag()
              );
}
Пример #4
0
inline
void pnm_write_view( const String& filename
                     , const View&   view
                   )
{
    write_view( filename
                , view
                , pnm_tag()
              );
}
Пример #5
0
inline
void png_write_view( const String& filename
                    , const View&   view
                    )
{
    write_view( filename
              , view
              , tag_t()
              );
}
Пример #6
0
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
              );
}
Пример #7
0
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
              );
}
Пример #8
0
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
              );
}