AnimatedPath

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

Constructors

AnimatedPath

#
Create a new empty path.
public AnimatedPath()

AnimatedPath

#
Create a new path with a bunch of strokes.
public AnimatedPath()

Properties

Count

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

Gaps

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

Methods

AddArc

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

AddCircle

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

AddGap

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

AddLine

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

AddLine

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

AddLines

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

CreateErrorPath

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

CreateMessagePath

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

CreateSuccessPath

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

CreateWarningPath

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

Draw

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

Draw

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

Draw

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

Draw

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