Anti-Grain Geometry - AGG (libagg)  2.5
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes
agg::rgba16 Struct Reference

#include <agg_color_rgba.h>

List of all members.

Public Types

enum  base_scale_e { base_shift = 16, base_scale = 1 << base_shift, base_mask = base_scale - 1 }
typedef int16u value_type
typedef int32u calc_type
typedef int64 long_type
typedef rgba16 self_type

Public Member Functions

 rgba16 ()
 rgba16 (unsigned r_, unsigned g_, unsigned b_, unsigned a_=base_mask)
 rgba16 (const self_type &c, unsigned a_)
 rgba16 (const rgba &c)
 rgba16 (const rgba &c, double a_)
 rgba16 (const rgba8 &c)
 rgba16 (const rgba8 &c, unsigned a_)
void clear ()
const self_typetransparent ()
AGG_INLINE const self_typeopacity (double a_)
double opacity () const
AGG_INLINE const self_typepremultiply ()
AGG_INLINE const self_typepremultiply (unsigned a_)
AGG_INLINE const 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 self_type no_color ()
static self_type from_wavelength (double wl, double gamma=1.0)

Public Attributes

value_type r
value_type g
value_type b
value_type a

Member Typedef Documentation


Member Enumeration Documentation

Enumerator:
base_shift 
base_scale 
base_mask 

Constructor & Destructor Documentation

agg::rgba16::rgba16 ( ) [inline]
agg::rgba16::rgba16 ( unsigned  r_,
unsigned  g_,
unsigned  b_,
unsigned  a_ = base_mask 
) [inline]
agg::rgba16::rgba16 ( const self_type c,
unsigned  a_ 
) [inline]
agg::rgba16::rgba16 ( const rgba c) [inline]
agg::rgba16::rgba16 ( const rgba c,
double  a_ 
) [inline]
agg::rgba16::rgba16 ( const rgba8 c) [inline]
agg::rgba16::rgba16 ( const rgba8 c,
unsigned  a_ 
) [inline]

Member Function Documentation

AGG_INLINE void agg::rgba16::add ( const self_type c,
unsigned  cover 
) [inline]
template<class GammaLUT >
AGG_INLINE void agg::rgba16::apply_gamma_dir ( const GammaLUT &  gamma) [inline]
template<class GammaLUT >
AGG_INLINE void agg::rgba16::apply_gamma_inv ( const GammaLUT &  gamma) [inline]
void agg::rgba16::clear ( ) [inline]
AGG_INLINE const self_type& agg::rgba16::demultiply ( ) [inline]
static self_type agg::rgba16::from_wavelength ( double  wl,
double  gamma = 1.0 
) [inline, static]
AGG_INLINE self_type agg::rgba16::gradient ( const self_type c,
double  k 
) const [inline]
static self_type agg::rgba16::no_color ( ) [inline, static]
AGG_INLINE const self_type& agg::rgba16::opacity ( double  a_) [inline]
double agg::rgba16::opacity ( ) const [inline]
AGG_INLINE const self_type& agg::rgba16::premultiply ( ) [inline]
AGG_INLINE const self_type& agg::rgba16::premultiply ( unsigned  a_) [inline]
const self_type& agg::rgba16::transparent ( ) [inline]

Member Data Documentation


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines