64 auto d = fp_cairo.
min() - sa.
min();
65 if (d.x() < 0.0) d.x() = 0.0;
66 if (d.y() < 0.0) d.y() = 0.0;
68 cairo_t *ct = cairo_create(out);
70 cairo_set_operator(ct, CAIRO_OPERATOR_SOURCE);
77 cairo_surface_destroy(out);
cairo_surface_t * ink_cairo_surface_create_same_size(cairo_surface_t *s, cairo_content_t c)
static guint32 srgb_to_linear(const guint32 c, const guint32 a)
void set_cairo_surface_ci(cairo_surface_t *surface, SPColorInterpolation ci)
Set the color_interpolation_value for a Cairo surface.
Cairo integration helpers.
3x3 matrix representing an affine transformation.
C height() const
Get the vertical extent of the rectangle.
C width() const
Get the horizontal extent of the rectangle.
CPoint min() const
Get the corner of the rectangle with smallest coordinate values.
Axis-aligned rectangle that can be empty.
Axis aligned, non-empty rectangle.
void render_cairo(FilterSlot &slot) const override
void set_color(guint32 c)
double complexity(Geom::Affine const &ctm) const override
bool can_handle_affine(Geom::Affine const &) const override
Indicate whether the filter primitive can handle the given affine.
SPColorInterpolation color_interpolation
Geom::Rect filter_primitive_area(FilterUnits const &units) const
Returns the filter primitive area in user coordinate system.
cairo_surface_t * getcairo(int slot)
Returns the pixblock in specified slot.
void set(int slot, cairo_surface_t *s)
Sets or re-sets the pixblock associated with given slot.
Geom::Rect get_slot_area() const
FilterUnits const & get_units() const
Geom::Affine get_matrix_user2pb() const
Gets the user coordinates to pixblock coordinates transformation matrix.
constexpr double SP_RGBA32_G_F(uint32_t v)
constexpr double SP_RGBA32_R_F(uint32_t v)
constexpr double SP_RGBA32_A_F(uint32_t v)
constexpr double SP_RGBA32_B_F(uint32_t v)
void intersect(intersections_info &xs, D2< SBasis > const &A, D2< SBasis > const &B)
struct _cairo_surface cairo_surface_t
Helper class to stream background task notifications as a series of messages.
void cairo_rectangle(cairo_t *cr, Geom::Rect const &r)
@ SP_CSS_COLOR_INTERPOLATION_LINEARRGB
void cairo_set_source_rgba(cairo_t *cr, colour c)