Gnash
0.8.10
|
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. |
32-bit RGBA bitmap
Channels are in RGBA order.
gnash::image::ImageRGBA::ImageRGBA | ( | size_t | width, |
size_t | height | ||
) |
Create an empty RGB image with uninitialized data.
gnash::image::ImageRGBA::ImageRGBA | ( | iterator | data, |
size_t | width, | ||
size_t | height | ||
) | [inline] |
gnash::image::ImageRGBA::~ImageRGBA | ( | ) |
void gnash::image::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 assert, gnash::image::GnashImage::_width, gnash::image::GnashImage::_height, data, gnash::image::scanline(), x, and gnash::key::r.