Anti-Grain Geometry Tutorial
agg::rgba32 Struct Reference

Public Types

typedef float value_type
 
typedef double calc_type
 
typedef double long_type
 
typedef rgba32 self_type
 

Public Member Functions

 rgba32 (value_type r_, value_type g_, value_type b_, value_type a_=1)
 
 rgba32 (const self_type &c, float a_)
 
 rgba32 (const rgba &c)
 
 rgba32 (const rgba8 &c)
 
 rgba32 (const srgba8 &c)
 
 rgba32 (const rgba16 &c)
 
 operator rgba () const
 
 operator rgba8 () const
 
 operator srgba8 () const
 
 operator rgba16 () const
 
AGG_INLINE bool is_transparent () const
 
AGG_INLINE bool is_opaque () const
 
self_typeclear ()
 
self_typetransparent ()
 
AGG_INLINE self_typeopacity (double a_)
 
double opacity () const
 
AGG_INLINE self_typepremultiply ()
 
AGG_INLINE self_typedemultiply ()
 
AGG_INLINE self_type gradient (const self_type &c, double k) const
 
AGG_INLINE void add (const self_type &c, unsigned cover)
 
template<class GammaLUT >
AGG_INLINE void apply_gamma_dir (const GammaLUT &gamma)
 
template<class GammaLUT >
AGG_INLINE void apply_gamma_inv (const GammaLUT &gamma)
 

Static Public Member Functions

static AGG_INLINE double to_double (value_type a)
 
static AGG_INLINE value_type from_double (double a)
 
static AGG_INLINE value_type empty_value ()
 
static AGG_INLINE value_type full_value ()
 
static AGG_INLINE value_type invert (value_type x)
 
static AGG_INLINE value_type multiply (value_type a, value_type b)
 
static AGG_INLINE value_type demultiply (value_type a, value_type b)
 
template<typename T >
static AGG_INLINE T downscale (T a)
 
template<typename T >
static AGG_INLINE T downshift (T a, unsigned n)
 
static AGG_INLINE value_type mult_cover (value_type a, cover_type b)
 
static AGG_INLINE cover_type scale_cover (cover_type a, value_type b)
 
static AGG_INLINE value_type prelerp (value_type p, value_type q, value_type a)
 
static AGG_INLINE value_type lerp (value_type p, value_type q, value_type a)
 
static self_type no_color ()
 
static self_type from_wavelength (double wl, double gamma=1)
 

Public Attributes

value_type r
 
value_type g
 
value_type b
 
value_type a
 

Detailed Description

Definition at line 1031 of file agg_color_rgba.h.


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