#include <pngenc.h>
Public Member Functions | |
PngEncoder (Byte *rawBytes, Color *p, int w, int h, Byte d, int t) | |
~PngEncoder () | |
void | write (const char *fileName) |
This class allows to encode a raw image to a compressed PNG. Use write() to save the result to disk.
Definition at line 38 of file pngenc.h.
Definition at line 48 of file pngenc.cpp.
PngEncoder::~PngEncoder | ( | ) |
Definition at line 55 of file pngenc.cpp.
void PngEncoder::write | ( | const char * | fileName | ) |
Definition at line 59 of file pngenc.cpp.
References Color::blue, err(), Color::green, and png_jmpbuf.
Referenced by Image::save().