diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-11-12 14:51:18 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:46:47 +0300 |
commit | 599cbc140f200b530d619f2074c928d9c7fd7829 (patch) | |
tree | b753800f170b3bf819fc2bf719a77a84690a7120 /coding | |
parent | ca0ee60ed3313935743eb3fd92401cc26061d75b (diff) |
added ImageRenderer and tests for it.
Diffstat (limited to 'coding')
-rw-r--r-- | coding/lodepng_io.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coding/lodepng_io.hpp b/coding/lodepng_io.hpp index f0eb1b0230..f6254e4c62 100644 --- a/coding/lodepng_io.hpp +++ b/coding/lodepng_io.hpp @@ -129,7 +129,8 @@ inline void lodepng_read_and_convert_view(ReaderPtr<Reader> & reader,const View& /// \brief Loads the image specified by the given png image file name and color-converts it into the given view. template <typename View,typename CC> inline void lodepng_read_and_convert_view(ReaderPtr<Reader> & reader,const View& view,CC cc) { - lodepng_read_and_convert_view(reader,view,cc); + detail::lodepng_reader_color_convert<CC> m(reader, cc); + m.apply(view); } /// \ingroup LODEPNG_IO |