PngWriter Class Reference

#include <Pt/Gfx/PngWriter.h>

Writer for PNG images.

Public Member Functions

 PngWriter ()
 Default Constructor.
 
 PngWriter (std::ostream &is)
 Construct with target stream.
 
 ~PngWriter ()
 Destructor.
 
bool advance ()
 Advance compression af an image, returns true when finished.
 
void attach (std::ostream &is)
 Attach to target stream.
 
void beginWrite (Image &image)
 Begin compression of an image.
 
void detach ()
 Detach from target stream.
 
void reset ()
 Reset to begin new compression.
 
void write (Image &image)
 Writes the whole image to the stream.