PngEncoder Class Reference

PNG image encoder. More...

#include <pngenc.h>

List of all members.

Public Member Functions

 PngEncoder (Byte *rawBytes, Color *p, int w, int h, Byte d, int t)
 ~PngEncoder ()
void write (const char *fileName)


Detailed Description

PNG image encoder.

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.


Constructor & Destructor Documentation

PngEncoder::PngEncoder ( Byte rawBytes,
Color p,
int  w,
int  h,
Byte  d,
int  t 
)

Definition at line 48 of file pngenc.cpp.

PngEncoder::~PngEncoder (  ) 

Definition at line 55 of file pngenc.cpp.


Member Function Documentation

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().


The documentation for this class was generated from the following files:



Generated on Mon Mar 31 10:59:02 2008 by  doxygen 1.5.1