Documente Academic
Documente Profesional
Documente Cultură
Constructors
============
Filter::Filter()
Creates a new filter with space for one filter element
Filter::Filter(int n)
Creates a new filter with space for n filter elements. If number of filter
elements is known beforehand, it's better to use this constructor.
void Filter::clear_primitives()
Removes all filter primitives from this filter.
All pointers to filter primitives inside this filter should be considered
invalid after calling this function.
Each filter primitive can take one or more images as inputs and produces
a single image as output. In NR::Filter these are managed as image slots.
Every slot can hold one image.
There are two types of slots: pre-defined and user defined. Pre-defined
slots may only be used as inputs, while user defined slots may be used as
both inputs and outputs. User defined slots are numbered from 0 upwards,
pre-defined slots are numbered with the following constants:
Any user defined slot used as input must be the output of some previous
filter primitive. Other than that, user defined input slots do not need to be
used in any particular order.
These functions set the parameters for filter effects region and filter
primitive subregion.
Passing an unset length (length._set == false) results in no changes to
filter state.
Filter will not hold any references to the passed SVGLength object after
function returns.
If any of these parameters does not get set - either because function
for setting that is not called, or it is called with an unset length -
the default value, as defined in SVG standard, for that parameter is
used instead.
Sets the width and height of intermediate images in pixels. If not set,
suitable resolution is determined automatically. If either parameter is
less than zero, calling this function results in no changes to filter
state.
void Filter::reset_resolution()
Gaussian blur
-------------