synfig-core  1.0.3
Public Member Functions | List of all members
synfig::CairoSurface::alpha_pen Class Reference

Alpha-Blending Pen. More...

#include <surface.h>

Public Member Functions

 alpha_pen ()
 alpha_pen (const etl::alpha_pen< etl::generic_pen< CairoColor, CairoColorAccumulator >, float, _BlendFunc< CairoColor > > &x)
 alpha_pen (const etl::generic_pen< CairoColor, CairoColorAccumulator > &pen, const float &a=1, const _BlendFunc< CairoColor > &func=_BlendFunc< CairoColor >())
void set_blend_method (Color::BlendMethod method)
 Sets the blend method to that described by method.
Color::BlendMethod get_blend_method () const
 Returns the blend method being used for this pen.

Detailed Description

Alpha-Blending Pen.

This pen works like a normal alpha pen, except that it supports a variety of blending methods. Use set_blend_method() to select which blending method you want to use. The default blending method is Color::BLEND_COMPOSITE.

See Also
Color::BlendMethod

Constructor & Destructor Documentation

synfig::CairoSurface::alpha_pen::alpha_pen ( )
inline
synfig::CairoSurface::alpha_pen::alpha_pen ( const etl::alpha_pen< etl::generic_pen< CairoColor, CairoColorAccumulator >, float, _BlendFunc< CairoColor > > &  x)
inline
synfig::CairoSurface::alpha_pen::alpha_pen ( const etl::generic_pen< CairoColor, CairoColorAccumulator > &  pen,
const float &  a = 1,
const _BlendFunc< CairoColor > &  func = _BlendFunc<CairoColor>() 
)
inline

Member Function Documentation

void synfig::CairoSurface::alpha_pen::set_blend_method ( Color::BlendMethod  method)
inline

Sets the blend method to that described by method.

Color::BlendMethod synfig::CairoSurface::alpha_pen::get_blend_method ( ) const
inline

Returns the blend method being used for this pen.

Referenced by synfig::CairoSurface::blit_to().


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