1 #ifndef GILEXT_PNG_IO_V2_COMPAT_H
2 #define GILEXT_PNG_IO_V2_COMPAT_H
3 
4 namespace boost { namespace gil {
5 
6 struct png_tag {};
7 
8 template< typename Tag>
9 struct image_read_settings {};
10 
11 template< typename String
12         , typename Image
13         , typename FormatTag
14         >
15 inline
read_image(const String & file_name,Image & image,const FormatTag & tag)16 void read_image( const String&    file_name
17                , Image&           image
18                , const FormatTag& tag
19                )
20 { boost::gil::png_read_image(file_name, image); }
21 
22 template< typename String
23         , typename Image
24         , typename FormatTag
25         >
26 inline
read_and_convert_image(const String & file_name,Image & image,const FormatTag & tag)27 void read_and_convert_image( const String&    file_name
28                            , Image&           image
29                            , const FormatTag& tag
30                            )
31 { boost::gil::png_read_and_convert_image(file_name, image); }
32 } }
33 
34 template< typename String
35         , typename View
36         , typename FormatTag
37         >
38 inline
write_view(const String & file_name,const View & view,const FormatTag & tag)39 void write_view( const String&    file_name
40                , const View&      view
41                , const FormatTag& tag
42                )
43 { boost::gil::png_write_view( file_name, view); }
44 
45 #endif
46