Path.GetOuterContours Method

Applies to: Graphics Mill 12.1, 6.x-12.x (may differ)

Returns a path that contains only the outer boundaries of this path.

Namespace: Aurigma.GraphicsMill.Drawing
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public Path GetOuterContours()

Return Value

A new Path object without the holes and without anything inside the holes.

Remarks

The NonZero filling rule defines the regions.

Examples

C#
// A ring with a small circle inside its hole.
var ring = Path.Subtract(Path.Ellipse(15, 15, 120, 120), Path.Ellipse(40, 40, 70, 70));
var path = Path.Union(ring, Path.Ellipse(60, 60, 30, 30));

// Drop the hole and the circle inside it.
var outer = path.GetOuterContours();

The original path and its outer contours.

The original path and its outer contours.

See Also

Reference

Manual