Path.Inflate Method (Single, LineJoin)

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

Grows or shrinks every closed region of the path by the specified distance, with the specified corner style.

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

Syntax

C#
public void Inflate(
	float delta,
	LineJoin lineJoin
)

Parameters

delta

Type: System.Single

The distance. A positive value grows the regions, a negative value shrinks them.
lineJoin

Type: Aurigma.GraphicsMill.Drawing.LineJoin

The style of the corners.

Remarks

The miter limit is 2, the arc tolerance is 0.1, and the filling rule is NonZero. See the Inflate(Single, LineJoin, Single, Single, FillingRule) overload for details.

Examples

C#
var path = new Path();
path.DrawEllipse(15, 15, 60, 60);
path.DrawRectangle(78, 65, 55, 65);

var original = new Path(path);

// Grow the shapes by 8 units. Shapes closer than 16 units merge.
path.Inflate(8f, LineJoin.Round);

The original path and the inflated path.

The original path and the inflated path.

Exceptions

Exception Condition
System.ArgumentOutOfRangeException The distance is not a finite number.

See Also

Reference

Manual