synfig-core
1.0.3
|
Generic Cairo backed surface. It allows to create a image surface equivalent to the current backend for custom modifications purposes. More...
#include <surface.h>
Classes | |
class | alpha_pen |
Alpha-Blending Pen. More... |
Public Types | |
typedef CairoColor | value_type |
Public Member Functions | |
CairoSurface () | |
CairoSurface (cairo_surface_t *cs) | |
~CairoSurface () | |
void | set_wh (int w, int h, int pitch=0) |
void | set_wh (int w, int h, unsigned char *data, int pitch) |
void | blit_to (alpha_pen &DEST_PEN, int x, int y, int w, int h) |
void | set_cairo_surface (cairo_surface_t *cs) |
cairo_surface_t * | get_cairo_surface () const |
cairo_surface_t * | get_cairo_image_surface () const |
bool | map_cairo_image () |
void | unmap_cairo_image () |
bool | is_mapped () const |
Generic Cairo backed surface. It allows to create a image surface equivalent to the current backend for custom modifications purposes.
|
inline |
|
inline |
References set_cairo_surface().
|
inline |
void CairoSurface::set_wh | ( | int | w, |
int | h, | ||
int | pitch = 0 |
||
) |
References synfig::warning().
Referenced by map_cairo_image(), and set_wh().
|
inline |
References set_wh().
void synfig::CairoSurface::blit_to | ( | alpha_pen & | DEST_PEN, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h | ||
) |
References synfig::Color::BLEND_STRAIGHT, epsilon, f, and synfig::CairoSurface::alpha_pen::get_blend_method().
void CairoSurface::set_cairo_surface | ( | cairo_surface_t * | cs | ) |
cairo_surface_t * CairoSurface::get_cairo_surface | ( | ) | const |
cairo_surface_t * CairoSurface::get_cairo_image_surface | ( | ) | const |
Referenced by synfig::Layer_Bitmap::accelerated_cairorender().
bool CairoSurface::map_cairo_image | ( | ) |
References synfig::error(), and set_wh().
Referenced by Layer_Shade::accelerated_cairorender(), RadialBlur::accelerated_cairorender(), LumaKey::accelerated_cairorender(), synfig::Layer_SphereDistort::accelerated_cairorender(), synfig::Layer_ColorCorrect::accelerated_cairorender(), SpiralGradient::accelerated_cairorender(), Layer_Bevel::accelerated_cairorender(), FilledRect::accelerated_cairorender(), CurveWarp::accelerated_cairorender(), Halftone2::accelerated_cairorender(), CurveGradient::accelerated_cairorender(), Halftone3::accelerated_cairorender(), Warp::accelerated_cairorender(), cairo_paint_with_alpha_operator(), cairo_png_mptr::cairo_png_mptr(), synfig::cairorender(), synfig::Layer_Shape::feather_cairo_surface(), synfig::Target_Cairo::gamma_filter(), synfig::Target_Cairo_Tile::gamma_filter(), Blur::operator()(), synfig::Layer_Bitmap::set_cairo_surface(), and Import::set_time().
void CairoSurface::unmap_cairo_image | ( | ) |
References synfig::error().
Referenced by Layer_Shade::accelerated_cairorender(), RadialBlur::accelerated_cairorender(), LumaKey::accelerated_cairorender(), synfig::Layer_SphereDistort::accelerated_cairorender(), synfig::Layer_ColorCorrect::accelerated_cairorender(), SpiralGradient::accelerated_cairorender(), Layer_Bevel::accelerated_cairorender(), FilledRect::accelerated_cairorender(), CurveWarp::accelerated_cairorender(), Halftone2::accelerated_cairorender(), CurveGradient::accelerated_cairorender(), Halftone3::accelerated_cairorender(), Warp::accelerated_cairorender(), cairo_paint_with_alpha_operator(), cairo_png_mptr::cairo_png_mptr(), synfig::cairorender(), synfig::Layer_Shape::feather_cairo_surface(), synfig::Target_Cairo::gamma_filter(), synfig::Target_Cairo_Tile::gamma_filter(), Blur::operator()(), set_cairo_surface(), and synfig::Layer_Bitmap::~Layer_Bitmap().
bool CairoSurface::is_mapped | ( | ) | const |