#include <Pt/Gfx/PngWriter.h>
PNG image writer.
More...
|
|
| PngWriter () |
| | Default Constructor.
|
|
| PngWriter (std::ostream &is) |
| | Construct with target stream.
|
|
| ~PngWriter () |
| | Destructor.
|
|
void | attach (std::ostream &is) |
| | Attach to target stream.
|
|
void | detach () |
| | Detach from target stream.
|
|
void | reset () |
| | Reset to begin new compression.
|
|
void | beginWrite (const Image &image) |
| | Begin compression of an image.
|
|
bool | advance () |
| | Advance compression af an image, returns true when finished.
|
|
void | write (const Image &image) |
| | Writes the whole image to the stream.
|
PngWriter encodes an Image as PNG on an iostream. Attach an output stream, then call write() to emit the whole image, or beginWrite() and advance() to encode in steps. The writer does not own the stream or the image.