|
Claw
1.7.3
|
This class read data from a png file and store it in an image. More...
#include <png.hpp>
Classes | |
| struct | source_manager |
| Source manager that allow us to read from a std::istream. More... | |
Public Member Functions | |
| reader (image &img) | |
| Constructor. | |
| reader (image &img, std::istream &f) | |
| Constructor. | |
| void | load (std::istream &f) |
| Load an image from a png file. | |
This class read data from a png file and store it in an image.
| claw::graphic::png::reader::reader | ( | image & | img | ) |
Constructor.
| img | The image in which the data will be stored. |
Definition at line 90 of file png_reader.cpp.
| claw::graphic::png::reader::reader | ( | image & | img, |
| std::istream & | f | ||
| ) |
Constructor.
| img | The image in which the data will be stored. |
| f | The file from which we read the data. |
Definition at line 103 of file png_reader.cpp.
References load().
| void claw::graphic::png::reader::load | ( | std::istream & | f | ) |
Load an image from a png file.
| f | PNG file. |
Definition at line 114 of file png_reader.cpp.
References CLAW_PRECOND.
Referenced by reader().
1.8.1.2