Gnash  0.8.10
Public Types | Public Member Functions
gnash::image::ARGB Class Reference

Adapt a pixel_iterator to use 32-bit values in ARGB byte order. More...

#include <ImageIterators.h>

List of all members.

Public Types

typedef GnashImage::iterator iterator

Public Member Functions

 ARGB (iterator &i, ImageType t)
 Construct an ARGB pixel helper.
ARGBoperator= (const ARGB &other)
 Standard assignment just copies bytes.
const ARGBoperator= (boost::uint32_t pixel) const
 Writes a 32-bit unsigned value in ARGB byte order to the image.
 operator boost::uint32_t () const
 Convert to uint32_t in ARGB order.

Detailed Description

Adapt a pixel_iterator to use 32-bit values in ARGB byte order.


Member Typedef Documentation


Constructor & Destructor Documentation

gnash::image::ARGB::ARGB ( iterator i,
ImageType  t 
) [inline]

Construct an ARGB pixel helper.


Member Function Documentation

gnash::image::ARGB::operator boost::uint32_t ( ) const [inline]

Convert to uint32_t in ARGB order.

References gnash::image::TYPE_RGBA, and gnash::image::TYPE_RGB.

ARGB& gnash::image::ARGB::operator= ( const ARGB other) [inline]

Standard assignment just copies bytes.

Underlying bytes are really in RGBA order, so we use that.

References gnash::image::TYPE_RGBA, and gnash::image::TYPE_RGB.

const ARGB& gnash::image::ARGB::operator= ( boost::uint32_t  pixel) const [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_RGBA, and gnash::image::TYPE_RGB.


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