Anti-Grain Geometry Tutorial
agg::gray32 Struct Reference

Public Types

typedef float value_type
 
typedef double calc_type
 
typedef double long_type
 
typedef gray32 self_type
 

Public Member Functions

 gray32 (value_type v_, value_type a_=1)
 
 gray32 (const self_type &c, value_type a_)
 
 gray32 (const rgba &c)
 
 gray32 (const rgba8 &c)
 
 gray32 (const srgba8 &c)
 
 gray32 (const rgba16 &c)
 
 gray32 (const rgba32 &c)
 
 gray32 (const gray8 &c)
 
 gray32 (const sgray8 &c)
 
 gray32 (const gray16 &c)
 
 operator rgba () const
 
 operator gray8 () const
 
 operator sgray8 () const
 
 operator gray16 () const
 
 operator rgba8 () const
 
 operator srgba8 () const
 
 operator rgba16 () const
 
 operator rgba32 () const
 
AGG_INLINE bool is_transparent () const
 
AGG_INLINE bool is_opaque () const
 
self_typeclear ()
 
self_typetransparent ()
 
self_typeopacity (double a_)
 
double opacity () const
 
self_typepremultiply ()
 
self_typedemultiply ()
 
self_type gradient (self_type c, double k) const
 

Static Public Member Functions

static value_type luminance (double r, double g, double b)
 
static value_type luminance (const rgba &c)
 
static value_type luminance (const rgba32 &c)
 
static value_type luminance (const rgba8 &c)
 
static value_type luminance (const rgba16 &c)
 
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 ()
 

Public Attributes

value_type v
 
value_type a
 

Detailed Description

Definition at line 746 of file agg_color_gray.h.


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