#include <png.hpp>
Definition at line 47 of file png.hpp.
Public Member Functions | |
png (unsigned int w, unsigned int h) | |
Constructor. Creates an empty image. | |
png (const image &that) | |
Copy constructor. | |
png (std::istream &f) | |
Constructor. Load an image from a png file. | |
void | save (std::ostream &os, const writer::options &opt=writer::options()) const |
Save the image. | |
Classes | |
class | reader |
This class read data from a png file and store it in an image. More... | |
class | writer |
This class write an image in a png file. More... |
claw::graphic::png::png | ( | unsigned int | w, | |
unsigned int | h | |||
) |
claw::graphic::png::png | ( | const image & | that | ) |
claw::graphic::png::png | ( | std::istream & | f | ) |
void claw::graphic::png::save | ( | std::ostream & | f, | |
const writer::options & | opt = writer::options() | |||
) | const |