#include <nr-filter-colormatrix.h>
Definition at line 37 of file nr-filter-colormatrix.h.
◆ FilterColorMatrix()
Inkscape::Filters::FilterColorMatrix::FilterColorMatrix |
( |
| ) |
|
|
default |
◆ ~FilterColorMatrix()
Inkscape::Filters::FilterColorMatrix::~FilterColorMatrix |
( |
| ) |
|
|
overridedefault |
◆ can_handle_affine()
bool Inkscape::Filters::FilterColorMatrix::can_handle_affine |
( |
Geom::Affine const & |
| ) |
const |
|
overridevirtual |
Indicate whether the filter primitive can handle the given affine.
Results of some filter primitives depend on the coordinate system used when rendering. A gaussian blur with equal x and y deviation will remain unchanged by rotations. Per-pixel filters like color matrix and blend will not change regardless of the transformation.
When any filter returns false, filter rendering is performed on an intermediate surface with edges parallel to the axes of the user coordinate system. This means the matrices from FilterUnits will contain at most a (possibly non-uniform) scale and a translation. When all primitives of the filter return true, the rendering is performed in display coordinate space and no intermediate surface is used.
Reimplemented from Inkscape::Filters::FilterPrimitive.
Definition at line 197 of file nr-filter-colormatrix.cpp.
◆ complexity()
double Inkscape::Filters::FilterColorMatrix::complexity |
( |
Geom::Affine const & |
ctm | ) |
const |
|
overridevirtual |
◆ name()
Glib::ustring Inkscape::Filters::FilterColorMatrix::name |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ render_cairo()
void Inkscape::Filters::FilterColorMatrix::render_cairo |
( |
FilterSlot & |
slot | ) |
const |
|
overridevirtual |
Reimplemented from Inkscape::Filters::FilterPrimitive.
Definition at line 157 of file nr-filter-colormatrix.cpp.
References Inkscape::Filters::FilterPrimitive::_input, Inkscape::Filters::FilterPrimitive::_output, Inkscape::Filters::FilterPrimitive::color_interpolation, Inkscape::Filters::COLORMATRIX_ENDTYPE, Inkscape::Filters::COLORMATRIX_HUEROTATE, Inkscape::Filters::COLORMATRIX_LUMINANCETOALPHA, Inkscape::Filters::COLORMATRIX_MATRIX, Inkscape::Filters::COLORMATRIX_SATURATE, Inkscape::Filters::FilterSlot::getcairo(), ink_cairo_surface_create_same_size(), ink_cairo_surface_filter(), Inkscape::Filters::FilterSlot::set(), set_cairo_surface_ci(), type, value, and values.
◆ set_type()
◆ set_value()
void Inkscape::Filters::FilterColorMatrix::set_value |
( |
double |
value | ) |
|
|
virtual |
◆ set_values()
void Inkscape::Filters::FilterColorMatrix::set_values |
( |
std::vector< double > const & |
values | ) |
|
|
virtual |
◆ type
◆ value
double Inkscape::Filters::FilterColorMatrix::value |
|
private |
◆ values
std::vector<double> Inkscape::Filters::FilterColorMatrix::values |
|
private |
The documentation for this class was generated from the following files: