Figure Class

Represents a geometric figure in a Path, composed of a sequence of path segments.

Definition

Namespace: KGySoft.Drawing.Shapes
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
C#
public sealed class Figure
Inheritance
Object    Figure

Remarks

  Note

This class is meant to provide information about a figure in a Path instance for interoperability with other libraries, and it cannot be used to modify the figure. To add new figures or path segments to a Path, use its public StartFigure and Add... methods instead.

To get the path segments in this figure, use the Segments property.

To get the flattened points that define this figure, you can also use the GetFlattenedPoints method.

Properties

IsClosed Gets whether this Figure is closed.
IsEmpty Gets whether this Figure contains no segments.
Segments Gets a read-only collection of the PathSegment objects this Figure consists of.

Methods

GetFlattenedPoints Gets the flattened points that define this Figure as a polyline or a closed polygon.

See Also