Anti-Grain Geometry - AGG (libagg)  2.5
Public Types | Public Member Functions | Static Public Member Functions
agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset > Class Template Reference

#include <agg_pixfmt_gray.h>

List of all members.

Public Types

enum  base_scale_e {
  base_shift = color_type::base_shift, base_scale = color_type::base_scale, base_mask = color_type::base_mask, pix_width = sizeof(value_type),
  pix_step = Step, pix_offset = Offset
}
typedef RenBuf rbuf_type
typedef rbuf_type::row_data row_data
typedef Blender blender_type
typedef blender_type::color_type color_type
typedef int order_type
typedef color_type::value_type value_type
typedef color_type::calc_type calc_type

Public Member Functions

 pixfmt_alpha_blend_gray (rbuf_type &rb)
void attach (rbuf_type &rb)
template<class PixFmt >
bool attach (PixFmt &pixf, int x1, int y1, int x2, int y2)
AGG_INLINE unsigned width () const
AGG_INLINE unsigned height () const
AGG_INLINE int stride () const
int8urow_ptr (int y)
const int8urow_ptr (int y) const
row_data row (int y) const
const int8upix_ptr (int x, int y) const
int8upix_ptr (int x, int y)
AGG_INLINE color_type pixel (int x, int y) const
AGG_INLINE void copy_pixel (int x, int y, const color_type &c)
AGG_INLINE void blend_pixel (int x, int y, const color_type &c, int8u cover)
AGG_INLINE void copy_hline (int x, int y, unsigned len, const color_type &c)
AGG_INLINE void copy_vline (int x, int y, unsigned len, const color_type &c)
void blend_hline (int x, int y, unsigned len, const color_type &c, int8u cover)
void blend_vline (int x, int y, unsigned len, const color_type &c, int8u cover)
void blend_solid_hspan (int x, int y, unsigned len, const color_type &c, const int8u *covers)
void blend_solid_vspan (int x, int y, unsigned len, const color_type &c, const int8u *covers)
void copy_color_hspan (int x, int y, unsigned len, const color_type *colors)
void copy_color_vspan (int x, int y, unsigned len, const color_type *colors)
void blend_color_hspan (int x, int y, unsigned len, const color_type *colors, const int8u *covers, int8u cover)
void blend_color_vspan (int x, int y, unsigned len, const color_type *colors, const int8u *covers, int8u cover)
template<class Function >
void for_each_pixel (Function f)
template<class GammaLut >
void apply_gamma_dir (const GammaLut &g)
template<class GammaLut >
void apply_gamma_inv (const GammaLut &g)
template<class RenBuf2 >
void copy_from (const RenBuf2 &from, int xdst, int ydst, int xsrc, int ysrc, unsigned len)
template<class SrcPixelFormatRenderer >
void blend_from_color (const SrcPixelFormatRenderer &from, const color_type &color, int xdst, int ydst, int xsrc, int ysrc, unsigned len, int8u cover)
template<class SrcPixelFormatRenderer >
void blend_from_lut (const SrcPixelFormatRenderer &from, const color_type *color_lut, int xdst, int ydst, int xsrc, int ysrc, unsigned len, int8u cover)

Static Public Member Functions

static AGG_INLINE void make_pix (int8u *p, const color_type &c)

template<class Blender, class RenBuf, unsigned Step = 1, unsigned Offset = 0>
class agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >


Member Typedef Documentation

template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
typedef Blender agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::blender_type
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
typedef color_type::calc_type agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::calc_type
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
typedef blender_type::color_type agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::color_type
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
typedef int agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::order_type
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
typedef RenBuf agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::rbuf_type
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
typedef rbuf_type::row_data agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::row_data
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
typedef color_type::value_type agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::value_type

Member Enumeration Documentation

template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
enum agg::pixfmt_alpha_blend_gray::base_scale_e
Enumerator:
base_shift 
base_scale 
base_mask 
pix_width 
pix_step 
pix_offset 

Constructor & Destructor Documentation

template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::pixfmt_alpha_blend_gray ( rbuf_type rb) [inline, explicit]

Member Function Documentation

template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
template<class GammaLut >
void agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::apply_gamma_dir ( const GammaLut &  g) [inline]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
template<class GammaLut >
void agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::apply_gamma_inv ( const GammaLut &  g) [inline]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
void agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::attach ( rbuf_type rb) [inline]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
template<class PixFmt >
bool agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::attach ( PixFmt &  pixf,
int  x1,
int  y1,
int  x2,
int  y2 
) [inline]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
void agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::blend_color_hspan ( int  x,
int  y,
unsigned  len,
const color_type colors,
const int8u covers,
int8u  cover 
) [inline]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
void agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::blend_color_vspan ( int  x,
int  y,
unsigned  len,
const color_type colors,
const int8u covers,
int8u  cover 
) [inline]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
template<class SrcPixelFormatRenderer >
void agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::blend_from_color ( const SrcPixelFormatRenderer &  from,
const color_type color,
int  xdst,
int  ydst,
int  xsrc,
int  ysrc,
unsigned  len,
int8u  cover 
) [inline]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
template<class SrcPixelFormatRenderer >
void agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::blend_from_lut ( const SrcPixelFormatRenderer &  from,
const color_type color_lut,
int  xdst,
int  ydst,
int  xsrc,
int  ysrc,
unsigned  len,
int8u  cover 
) [inline]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
void agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::blend_hline ( int  x,
int  y,
unsigned  len,
const color_type c,
int8u  cover 
) [inline]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
AGG_INLINE void agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::blend_pixel ( int  x,
int  y,
const color_type c,
int8u  cover 
) [inline]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
void agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::blend_solid_hspan ( int  x,
int  y,
unsigned  len,
const color_type c,
const int8u covers 
) [inline]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
void agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::blend_solid_vspan ( int  x,
int  y,
unsigned  len,
const color_type c,
const int8u covers 
) [inline]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
void agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::blend_vline ( int  x,
int  y,
unsigned  len,
const color_type c,
int8u  cover 
) [inline]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
void agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::copy_color_hspan ( int  x,
int  y,
unsigned  len,
const color_type colors 
) [inline]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
void agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::copy_color_vspan ( int  x,
int  y,
unsigned  len,
const color_type colors 
) [inline]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
template<class RenBuf2 >
void agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::copy_from ( const RenBuf2 &  from,
int  xdst,
int  ydst,
int  xsrc,
int  ysrc,
unsigned  len 
) [inline]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
AGG_INLINE void agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::copy_hline ( int  x,
int  y,
unsigned  len,
const color_type c 
) [inline]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
AGG_INLINE void agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::copy_pixel ( int  x,
int  y,
const color_type c 
) [inline]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
AGG_INLINE void agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::copy_vline ( int  x,
int  y,
unsigned  len,
const color_type c 
) [inline]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
template<class Function >
void agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::for_each_pixel ( Function  f) [inline]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
AGG_INLINE unsigned agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::height ( ) const [inline]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
static AGG_INLINE void agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::make_pix ( int8u p,
const color_type c 
) [inline, static]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
const int8u* agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::pix_ptr ( int  x,
int  y 
) const [inline]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
int8u* agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::pix_ptr ( int  x,
int  y 
) [inline]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
AGG_INLINE color_type agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::pixel ( int  x,
int  y 
) const [inline]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
row_data agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::row ( int  y) const [inline]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
int8u* agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::row_ptr ( int  y) [inline]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
const int8u* agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::row_ptr ( int  y) const [inline]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
AGG_INLINE int agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::stride ( ) const [inline]
template<class Blender , class RenBuf , unsigned Step = 1, unsigned Offset = 0>
AGG_INLINE unsigned agg::pixfmt_alpha_blend_gray< Blender, RenBuf, Step, Offset >::width ( ) const [inline]

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