OffsetPrimitive Class
A primitive that moves its input: feOffset of SVG.
public sealed class OffsetPrimitive : FilterPrimitiveRemarks
A pixel of the result is the pixel of the input at its position minus OffsetPrimitive.Offset on the canvas (through the linear part of the transformation); between pixels, the four around are interpolated, in the colors of the input. What comes from beyond the subregion of the input is transparent.
- Inheritance
FilterPrimitiveOffsetPrimitive
Constructors
| Name | Description |
|---|---|
| OffsetPrimitive(PointD) | Initializes a new instance of the OffsetPrimitive class. |
OffsetPrimitive(PointD)
OffsetPrimitive.csInitializes a new instance of the OffsetPrimitive class.
public OffsetPrimitive(PointD offset)Parameters
offsetPointD- The distance the input is moved by, in units of the drawing:
dxanddy.
Exceptions
ArgumentException- A coordinate is not a finite number.
ArgumentOutOfRangeException- The magnitude of a coordinate exceeds 16777216.
Properties
| Name | Description |
|---|---|
| Input | Gets the input: in. |
| Offset | Gets the distance the input is moved by. |