Gnash  0.8.11dev
Public Types | Public Member Functions | List of all members
gnash::image::ARGB Class Reference

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...
 
ARGBoperator= (const ARGB &other)
 Standard assignment just copies bytes. More...
 
const ARGBoperator= (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...
 

Detailed Description

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

Member Typedef Documentation

§ iterator

Constructor & Destructor Documentation

§ ARGB()

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

Construct an ARGB pixel helper.

Member Function Documentation

§ operator std::uint32_t()

gnash::image::ARGB::operator std::uint32_t ( ) const
inline

Convert to uint32_t in ARGB order.

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

§ operator=() [1/2]

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_RGB, and gnash::image::TYPE_RGBA.

§ operator=() [2/2]

const ARGB& gnash::image::ARGB::operator= ( std::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_RGB, and gnash::image::TYPE_RGBA.


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