32-bit RGBA bitmap More...
#include <GnashImage.h>
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) |
32-bit RGBA bitmap
Channels are in RGBA order.
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 | ( | ) |
void gnash::ImageRGBA::mergeAlpha | ( | const_iterator | alphaData, | |
const size_t | bufferLength | |||
) |
References gnash::GnashImage::begin(), gnash::key::i, gnash::key::p, and gnash::GnashImage::size().
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().