Table of Contents

Class SvgFilterElement

Namespace
SharpVectors.Dom.Svg
Assembly
SharpVectors.Model.dll

An implementation of the ISvgFilterElement interface, which corresponds to the 'filter' element.

public sealed class SvgFilterElement : SvgStyleableElement, ICloneable, IEnumerable, IXPathNavigable, IEventTargetSupport, IEventTarget, IElementCssInlineStyle, ISvgFilterElement, ISvgElement, IElement, IXmlElement, INode, IXmlNode, ISvgUriReference, ISvgLangSpace, ISvgExternalResourcesRequired, ISvgStylable
Inheritance
SvgFilterElement
Implements
Inherited Members

Remarks

A filter effect is a graphical operation that is applied to an element as it is drawn into the document. It is an image-based effect, in that it takes zero or more images as input, a number of parameters specific to the effect, and then produces an image as output. The output image is either rendered into the document instead of the original element, used as an input image to another filter effect, or provided as a CSS image value.

Filter Region

A filter element can define a filter region on the canvas to which a given filter effect applies and can provide a resolution for any intermediate continuous tone images used to process any raster-based filter primitives.

The filter element has the following attributes which work together to define the filter region:

FilterUnits, X, Y, Width, Height

Constructors

SvgFilterElement(string, string, string, SvgDocument)

Fields

BackgroundAlpha

Same as BackgroundImage except only the alpha channel is used. See SourceAlpha and the isolation property.

BackgroundImage

This keyword represents the back drop defined by the current isolation group behind the filter region at the time that the filter element was invoked.

FillPaint

This keyword represents the value of the fill property on the target element for the filter effect.

SourceAlpha

This keyword represents the graphics elements that were the original input into the filter element.

SourceGraphic

This keyword represents the graphics elements that were the original input into the filter element.

StrokePaint

This keyword represents the value of the stroke property on the target element for the filter effect.

Properties

ExternalResourcesRequired

Corresponds to attribute externalResourcesRequired on the given element.

FilterResX

The contains the X component of attribute 'filterRes'. The 'filterRes' indicates the width and height of the intermediate images in pixels of a filter primitive.

FilterResY

The contains the X component of attribute 'filterRes'. The 'filterRes' indicates the width and height of the intermediate images in pixels of a filter primitive.

FilterUnits

Gets a value definining the coordinate system for attributes X, Y, Width, Height.

Height
Href
IsRenderable

Gets a value indicating whether this SVG element is renderable.

PrimitiveUnits

Gets a value specifying the coordinate system for the various length values within the filter primitives and for the attributes that define the filter primitive subregion.

Width
X
Y

Methods

SetFilterRes(ulong, ulong)

Sets the values for attribute 'filterRes'.