Gnash
0.8.11dev
|
Adapt a pixel_iterator to use 32-bit values in ARGB byte order. More...
#include <ImageIterators.h>
Public Types | |
typedef GnashImage::iterator | iterator |
Public Member Functions | |
ARGB (iterator &i, ImageType t) | |
Construct an ARGB pixel helper. More... | |
ARGB & | operator= (const ARGB &other) |
Standard assignment just copies bytes. More... | |
const ARGB & | operator= (std::uint32_t pixel) const |
Writes a 32-bit unsigned value in ARGB byte order to the image. More... | |
operator std::uint32_t () const | |
Convert to uint32_t in ARGB order. More... | |
Adapt a pixel_iterator to use 32-bit values in ARGB byte order.
|
inline |
Convert to uint32_t in ARGB order.
References gnash::image::TYPE_RGB, and gnash::image::TYPE_RGBA.
Standard assignment just copies bytes.
Underlying bytes are really in RGBA order, so we use that.
References gnash::image::TYPE_RGB, and gnash::image::TYPE_RGBA.
|
inline |
Writes a 32-bit unsigned value in ARGB byte order to the image.
Take note of the different byte order!
References gnash::image::TYPE_RGB, and gnash::image::TYPE_RGBA.