Public Member Functions | Static Public Member Functions

gnash::image::PngOutput Class Reference

#include <GnashImagePng.h>

Inheritance diagram for gnash::image::PngOutput:
Inheritance graph
[legend]
Collaboration diagram for gnash::image::PngOutput:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PngOutput (boost::shared_ptr< IOChannel > out, size_t width, size_t height, int quality)
 Create an output object bound to a gnash::IOChannel.
 ~PngOutput ()
void writeImageRGB (const unsigned char *rgbData)
 Write RGB image data using the parameters supplied at construction.
void writeImageRGBA (const unsigned char *rgbaData)
 Write RGBA image data using the parameters supplied at construction.

Static Public Member Functions

static std::auto_ptr< Outputcreate (boost::shared_ptr< IOChannel > out, size_t width, size_t height, int quality)

Constructor & Destructor Documentation

gnash::image::PngOutput::PngOutput ( boost::shared_ptr< IOChannel out,
size_t  width,
size_t  height,
int  quality 
)

Create an output object bound to a gnash::IOChannel.

Parameters:
out The IOChannel used for output. Must be kept alive throughout
quality Unused in PNG output

PNG output

gnash::image::PngOutput::~PngOutput (  ) 

Member Function Documentation

std::auto_ptr< Output > gnash::image::PngOutput::create ( boost::shared_ptr< IOChannel out,
size_t  width,
size_t  height,
int  quality 
) [static]
void gnash::image::PngOutput::writeImageRGB ( const unsigned char *  rgbData  )  [virtual]

Write RGB image data using the parameters supplied at construction.

Parameters:
rgbData The raw RGB image data to write as an image.

Implements gnash::image::Output.

void gnash::image::PngOutput::writeImageRGBA ( const unsigned char *   )  [virtual]

Write RGBA image data using the parameters supplied at construction.

Parameters:
rgbaData The raw RGBA image data to write as an image.

Reimplemented from gnash::image::Output.


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