SceneImagePrimitive Class

A primitive whose result is the drawing of an element: feImage of SVG, of an image or of an element.

public sealed class SceneImagePrimitive : SceneFilterPrimitive

Exceptions

ArgumentNullException
content is null.

Remarks

The element is drawn in the coordinates of the filter (the parent of the filtered element), with its own transform and effects, and cut to the subregion of the primitive (by default, the region of the filter). The scene draws it only there: it does not need to be in the scene otherwise. A primitive whose element draws, through its own filters, the element that the primitive filters draws nothing there.

SVG embeds an image without effects (no transform, filter, mask, clipping path or blend mode, opaque) in the feImage itself when the SceneFilterPrimitive.Subregion is the rectangle of the image; it refers to the element otherwise, which Firefox does not draw.

Inheritance
SceneFilterPrimitive SceneImagePrimitive

Constructors

NameDescription
SceneImagePrimitive(SceneElement)A primitive whose result is the drawing of an element: feImage of SVG, of an image or of an element.

SceneImagePrimitive(SceneElement)

SceneImagePrimitive.cs

A primitive whose result is the drawing of an element: feImage of SVG, of an image or of an element.

public SceneImagePrimitive(SceneElement content)

Parameters

content SceneElement
The element: a SceneImage, or any element.

Exceptions

ArgumentNullException
content is null.

Remarks

The element is drawn in the coordinates of the filter (the parent of the filtered element), with its own transform and effects, and cut to the subregion of the primitive (by default, the region of the filter). The scene draws it only there: it does not need to be in the scene otherwise. A primitive whose element draws, through its own filters, the element that the primitive filters draws nothing there.

SVG embeds an image without effects (no transform, filter, mask, clipping path or blend mode, opaque) in the feImage itself when the SceneFilterPrimitive.Subregion is the rectangle of the image; it refers to the element otherwise, which Firefox does not draw.

Properties

NameDescription
ContentGets the element whose drawing is the result.

Gets the element whose drawing is the result.

public SceneElement Content { get; }

Property value

SceneElement