CompoundStroke

public sealed class CompoundStroke : IAnimatedStroke
Represents a continuous collection of animated strokes.

Constructors

CompoundStroke

#
public CompoundStroke(IEnumerable<IAnimatedStroke> strokes)
Create a new compound.
strokes (IEnumerable<IAnimatedStroke>)Element strokes.

CompoundStroke

#
public CompoundStroke(params IAnimatedStroke[] strokes)
Create a new compound.
strokes (params IAnimatedStroke[])Element strokes.

Properties

Count

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

Length

#
public float Length { get; }
Gets the length of this stroke.
Length

Point0

#
public PointF Point0 { get; }
Gets the start point of this stroke.
Point0

Point1

#
public PointF Point1 { get; }
Gets the end point of this stroke.
Point1

Methods

AppendStroke

#
public void AppendStroke(GraphicsPath path, double t0, double t1)
Append this stroke to a path.
path (GraphicsPath)Path to append to.
t0 (double)Normalised start parameter.
t1 (double)Normalised end parameter.
AppendStroke

ToArray

#
public IAnimatedStroke[] ToArray()
Convert this compound to an array of individual strokes.
Array of strokes.