Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
agg::blender_gray< ColorT > Struct Template Reference

#include <src/agg/agg_pixfmt_gray.h>

Public Types

typedef ColorT color_type
 
typedef color_type::value_type value_type
 
typedef color_type::calc_type calc_type
 
typedef color_type::long_type long_type
 

Static Public Member Functions

static AGG_INLINE void blend_pix (value_type *p, value_type cv, value_type alpha, cover_type cover)
 
static AGG_INLINE void blend_pix (value_type *p, value_type cv, value_type alpha)
 

Detailed Description

template<class ColorT>
struct agg::blender_gray< ColorT >

Member Typedef Documentation

◆ calc_type

template<class ColorT >
typedef color_type::calc_type agg::blender_gray< ColorT >::calc_type

◆ color_type

template<class ColorT >
typedef ColorT agg::blender_gray< ColorT >::color_type

◆ long_type

template<class ColorT >
typedef color_type::long_type agg::blender_gray< ColorT >::long_type

◆ value_type

template<class ColorT >
typedef color_type::value_type agg::blender_gray< ColorT >::value_type

Member Function Documentation

◆ blend_pix() [1/2]

template<class ColorT >
static AGG_INLINE void agg::blender_gray< ColorT >::blend_pix ( value_type p,
value_type  cv,
value_type  alpha 
)
inlinestatic
54 {
55 *p = color_type::lerp(*p, cv, alpha);
56 }

◆ blend_pix() [2/2]

template<class ColorT >
static AGG_INLINE void agg::blender_gray< ColorT >::blend_pix ( value_type p,
value_type  cv,
value_type  alpha,
cover_type  cover 
)
inlinestatic
48 {
49 blend_pix(p, cv, color_type::mult_cover(alpha, cover));
50 }
static AGG_INLINE void blend_pix(value_type *p, value_type cv, value_type alpha, cover_type cover)
Definition agg_pixfmt_gray.h:46

References agg::blender_gray< ColorT >::blend_pix().

Referenced by agg::blender_gray< ColorT >::blend_pix().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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