Table of Contents

Method CreatePiePath

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

CreatePiePath(PointD, float, float, float)

Creates an SKPath representing a pie segment.

public virtual SKPath CreatePiePath(PointD center, float radius, float startAngle, float sweepAngle)

Parameters

center PointD

The center point of the circular pie.

radius float

The radius of the pie segment.

startAngle float

The angle (in degrees) at which the pie segment starts, measured clockwise from the X-axis.

sweepAngle float

The angle (in degrees) the segment sweeps clockwise from the start angle.

Returns

SKPath

An SKPath that describes the pie segment as an arc closed by a line to the center.