Public Member Functions

gnash::ImageRGBA Class Reference

32-bit RGBA bitmap More...

#include <GnashImage.h>

Inheritance diagram for gnash::ImageRGBA:
gnash::GnashImage

List of all members.

Public Member Functions

 ImageRGBA (size_t width, size_t height)
 Create an empty RGB image with uninitialized data.
 ImageRGBA (iterator data, size_t width, size_t height)
 ~ImageRGBA ()
void setPixel (size_t x, size_t y, value_type r, value_type g, value_type b, value_type a)
 Set pixel value.
void mergeAlpha (const_iterator alphaData, const size_t bufferLength)

Detailed Description

32-bit RGBA bitmap

Channels are in RGBA order.


Constructor & Destructor Documentation

gnash::ImageRGBA::ImageRGBA ( size_t  width,
size_t  height 
)

Create an empty RGB image with uninitialized data.

gnash::ImageRGBA::ImageRGBA ( iterator  data,
size_t  width,
size_t  height 
) [inline]
gnash::ImageRGBA::~ImageRGBA (  ) 

Member Function Documentation

void gnash::ImageRGBA::mergeAlpha ( const_iterator  alphaData,
const size_t  bufferLength 
)
void gnash::ImageRGBA::setPixel ( size_t  x,
size_t  y,
value_type  r,
value_type  g,
value_type  b,
value_type  a 
)

Set pixel value.

TODO: move in base class ?

References gnash::GnashImage::_height, gnash::GnashImage::_width, data, and gnash::scanline().


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