|
Gnash
0.8.11dev
|
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. More... | |
| 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. More... | |
Public Member Functions inherited from gnash::image::GnashImage | |
| virtual | ~GnashImage () |
| ImageType | type () const |
| Return the ImageType of the image. More... | |
| ImageLocation | location () const |
| Return the ImageLocation of the image. More... | |
| size_t | size () const |
| Get the size of the image buffer. More... | |
| virtual size_t | stride () const |
| Get the pitch of the image buffer. More... | |
| size_t | channels () const |
| Get the number of channels. More... | |
| size_t | width () const |
| Get the image's width. More... | |
| size_t | height () const |
| Get the image's width. More... | |
| void | update (const_iterator data) |
| Copy image data from a buffer. More... | |
| void | update (const GnashImage &from) |
| Copy image data from another image data. More... | |
| virtual iterator | begin () |
| Access the raw data. More... | |
| virtual const_iterator | begin () const |
| Access the raw data. More... | |
| iterator | end () |
| An iterator to the end of the data. More... | |
| const_iterator | end () const |
| An iterator to the end of the data. More... | |
Additional Inherited Members | |
Public Types inherited from gnash::image::GnashImage | |
| typedef std::uint8_t | value_type |
| typedef std::unique_ptr< value_type[]> | container_type |
| typedef value_type * | iterator |
| typedef const value_type * | const_iterator |
Protected Member Functions inherited from gnash::image::GnashImage | |
| GnashImage (iterator data, size_t width, size_t height, ImageType type, ImageLocation location=GNASH_IMAGE_CPU) | |
| Construct a GnashImage from a data buffer, taking ownership of the data. More... | |
| GnashImage (size_t width, size_t height, ImageType type, ImageLocation location=GNASH_IMAGE_CPU) | |
| Construct an empty GnashImage. More... | |
Protected Attributes inherited from gnash::image::GnashImage | |
| const ImageType | _type |
| The type of the image: RGBA or RGB. More... | |
| const ImageLocation | _location |
| Image data location (CPU or GPU) More... | |
| const size_t | _width |
| Width of image, in pixels. More... | |
| const size_t | _height |
| Height of image, in pixels. More... | |
| container_type | _data |
| Data if held in this class. More... | |
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.
Referenced by gnash::image::Input::readImageData(), and gnash::image::Input::readSWFJpeg3().
|
inline |
References gnash::key::a, gnash::key::b, gnash::key::g, gnash::key::r, x, and y.
| 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 gnash::image::GnashImage::_height, gnash::image::GnashImage::_width, data, gnash::key::r, gnash::image::scanline(), and x.
1.8.12