OffsetPrimitive Class

A primitive that moves its input: feOffset of SVG.

public sealed class OffsetPrimitive : FilterPrimitive

Remarks

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
FilterPrimitive OffsetPrimitive

Constructors

NameDescription
OffsetPrimitive(PointD)Initializes a new instance of the OffsetPrimitive class.

OffsetPrimitive(PointD)

OffsetPrimitive.cs

Initializes a new instance of the OffsetPrimitive class.

public OffsetPrimitive(PointD offset)

Parameters

offset PointD
The distance the input is moved by, in units of the drawing: dx and dy.

Exceptions

ArgumentException
A coordinate is not a finite number.
ArgumentOutOfRangeException
The magnitude of a coordinate exceeds 16777216.

Properties

NameDescription
InputGets the input: in.
OffsetGets the distance the input is moved by.

Gets the input: in.

public FilterInput Input { get; init; }

Property value

FilterInput

Gets the distance the input is moved by.

public PointD Offset { get; }

Property value

PointD