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 : SceneFilterPrimitiveExceptions
ArgumentNullExceptioncontentisnull.
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
SceneFilterPrimitiveSceneImagePrimitive
Constructors
| Name | Description |
|---|---|
| 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.csA primitive whose result is the drawing of an element: feImage of SVG, of an image or of an element.
public SceneImagePrimitive(SceneElement content)Parameters
contentSceneElement- The element: a
SceneImage, or any element.
Exceptions
ArgumentNullExceptioncontentisnull.
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
| Name | Description |
|---|---|
| Content | Gets the element whose drawing is the result. |