Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

PLPNGEncoder Class Reference

PNG file encoder. Uses LIBPNG to do the actual conversion. More...

#include <plpngenc.h>

Inheritance diagram for PLPNGEncoder:

Inheritance graph
[legend]
Collaboration diagram for PLPNGEncoder:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PLPNGEncoder ()
 Creates an encoder.
virtual ~PLPNGEncoder ()
 Destroys a encoder.
PLDataSinkGetDataSink ()

Protected Member Functions

virtual void DoEncode (PLBmp *pBmp, PLDataSink *pDataSnk)
 Sets up LIBPNG environment and calls LIBPNG to encode an image.

Private Attributes

PLBmpm_pBmp
PLDataSinkm_pDataSnk

Detailed Description

PNG file encoder. Uses LIBPNG to do the actual conversion.

Definition at line 19 of file plpngenc.h.


Constructor & Destructor Documentation

PLPNGEncoder::PLPNGEncoder  ) 
 

Creates an encoder.

Definition at line 30 of file plpngenc.cpp.

References NULL.

PLPNGEncoder::~PLPNGEncoder  )  [virtual]
 

Destroys a encoder.

Definition at line 38 of file plpngenc.cpp.


Member Function Documentation

void PLPNGEncoder::DoEncode PLBmp pBmp,
PLDataSink pDataSnk
[protected, virtual]
 

Sets up LIBPNG environment and calls LIBPNG to encode an image.

Implements PLPicEncoder.

Definition at line 169 of file plpngenc.cpp.

References createPNGPalette(), EncodeData(), EncodeExtraInfo(), EncodeTransformation(), FlushData(), PLBmp::GetBitsPerPixel(), PLBmp::GetHeight(), PLBmp::GetLineArray(), PLDataSink::GetName(), PLBmp::GetPalette(), PLBmp::GetResolution(), PLBmp::GetWidth(), PLBmp::HasAlpha(), m_pBmp, m_pDataSnk, NULL, PLASSERT, PLBYTE, PLPoint::x, and PLPoint::y.

Here is the call graph for this function:

PLDataSink * PLPNGEncoder::GetDataSink  ) 
 

Definition at line 42 of file plpngenc.cpp.

Referenced by EncodeData().


Member Data Documentation

PLBmp* PLPNGEncoder::m_pBmp [private]
 

Definition at line 43 of file plpngenc.h.

Referenced by DoEncode().

PLDataSink* PLPNGEncoder::m_pDataSnk [private]
 

Definition at line 44 of file plpngenc.h.

Referenced by DoEncode().


The documentation for this class was generated from the following files:
Generated on Wed Dec 15 21:21:01 2004 for vuVolume by  doxygen 1.3.9.1