AnimatedPath
ReferencesEncodes a (collection of) path(s) which can be animated as though being drawn.
Constructors
AnimatedPath
#Create a new path with a bunch of strokes.
Parameters:
| strokes (IEnumerable<IAnimatedStroke>) |
Properties
Methods
AddLine
#Add a line to this path.
AddLine
#public void AddLine(PointF point0, PointF point1)
Add a line to this path.
Parameters:
| point0 (PointF) | Start point. |
| point1 (PointF) | End point. |
AddLines
#public void AddLines(params PointF[] points)
Add a polyline to this path.
Parameters:
| points (params PointF[]) | Points on polyline. |
CreateErrorPath
#Create the standard x-shaped path used to signal errors or failures.
Parameters:
| size (float) | Radius of disc containing the path. |
Returns: Animated path.
CreateMessagePath
#Create the standard vague-shaped path used to signal generic messages.
Parameters:
| size (float) | Radius of disc containing the path. |
Returns: Animated path.
CreateSuccessPath
#Create the standard check-shaped path used to signal warnings.
Parameters:
| size (float) | Radius of disc containing the path. |
Returns: Animated path.
CreateWarningPath
#Create the standard exclamation-shaped path used to signal warnings.
Parameters:
| size (float) | Radius of disc containing the path. |
Returns: Animated path.
Draw
#Draw this path using an animation key.
Parameters:
| 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
#Draw this path using an animation key.
Parameters:
| 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
#Draw this path.
Parameters:
| 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
#Draw this path.