AnimatedPath

References
public sealed class AnimatedPath
Encodes a (collection of) path(s) which can be animated as though being drawn.

Constructors

AnimatedPath

#
public AnimatedPath()
Create a new empty path.

AnimatedPath

#
public AnimatedPath(IEnumerable<IAnimatedStroke> strokes)
Create a new path with a bunch of strokes.
strokes (IEnumerable<IAnimatedStroke>)

Properties

Count

#
public int Count { get; }
Gets the number of strokes in this path.

Gaps

#
public int Gaps { get; }
Gets the number of gaps in this path.

Methods

AddArc

#
public void AddArc(ArcF arc)
Add an arc to this path.
arc (ArcF)Arc.

AddCircle

#
public void AddCircle(CircleF circle)
Add a circle to this path.
circle (CircleF)Circle.

AddGap

#
public void AddGap()
Add a gap to this path.

AddLine

#
public void AddLine(float x0, float y0, float x1, float y1)
Add a line to this path.
x0 (float)Start x.
y0 (float)Start y.
x1 (float)End x.
y1 (float)End y.

AddLine

#
public void AddLine(PointF point0, PointF point1)
Add a line to this path.
point0 (PointF)Start point.
point1 (PointF)End point.

AddLines

#
public void AddLines(params PointF[] points)
Add a polyline to this path.
points (params PointF[])Points on polyline.

CreateErrorPath

#
public static AnimatedPath CreateErrorPath(float size)
Create the standard x-shaped path used to signal errors or failures.
size (float)Radius of disc containing the path.
Animated path.

CreateMessagePath

#
public static AnimatedPath CreateMessagePath(float size)
Create the standard vague-shaped path used to signal generic messages.
size (float)Radius of disc containing the path.
Animated path.

CreateSuccessPath

#
public static AnimatedPath CreateSuccessPath(float size)
Create the standard check-shaped path used to signal warnings.
size (float)Radius of disc containing the path.
Animated path.

CreateWarningPath

#
public static AnimatedPath CreateWarningPath(float size)
Create the standard exclamation-shaped path used to signal warnings.
size (float)Radius of disc containing the path.
Animated path.

Draw

#
public void Draw(Graphics graphics, Pen pen, double key, PointF location, float scale, float angle)
Draw this path using an animation key.
graphics (Graphics)Graphics object to draw with.
pen (Pen)Pen to draw with.
key (double)Animation key. (0.0 -> 1.0) grow path to full from the left. (1.0 -> 2.0) shrink path to empty from the left.
location (PointF)Location of path anchor.
scale (float)Scale factor.
angle (float)Angle (in degrees, clockwise)

Draw

#
public void Draw(Graphics graphics, Pen pen, double key, PointF location)
Draw this path using an animation key.
graphics (Graphics)Graphics object to draw with.
pen (Pen)Pen to draw with.
key (double)Animation key. (0.0 -> 1.0) grow path to full from the left. (1.0 -> 2.0) shrink path to empty from the left.
location (PointF)Location of path anchor.

Draw

#
public void Draw(Graphics graphics, Pen pen, double t0, double t1, PointF location, float scale, float angle)
Draw this path.
graphics (Graphics)Graphics object to draw with.
pen (Pen)Pen to draw with.
t0 (double)Normalised start parameter of path to draw.
t1 (double)Normalised end parameter of path to draw.
location (PointF)Location of path anchor.
scale (float)Scale factor.
angle (float)Angle (in degrees, clockwise)

Draw

#
public void Draw(Graphics graphics, Pen pen, double t0, double t1, PointF location)
Draw this path.
graphics (Graphics)Graphics object to draw with.
pen (Pen)Pen to draw with.
t0 (double)Normalised start parameter of path to draw.
t1 (double)Normalised end parameter of path to draw.
location (PointF)Location of path anchor.