Table of Contents

Class PiePolygon

Namespace
SixLabors.ImageSharp.Drawing
Assembly
SixLabors.ImageSharp.Drawing.dll

A pie sector polygon defined by a center point, radii, rotation, and arc sweep.

public sealed class PiePolygon : Polygon, ISimplePath, IPath
Inheritance
PiePolygon
Implements
Inherited Members
Extension Methods

Constructors

PiePolygon(PointF, SizeF, float, float)

Initializes a new instance of the PiePolygon class.

public PiePolygon(PointF center, SizeF radius, float startAngle, float sweepAngle)

Parameters

center PointF

The center point of the pie sector.

radius SizeF

The x and y radii of the pie ellipse.

startAngle float

The pie start angle in degrees.

sweepAngle float

The pie sweep angle in degrees.

PiePolygon(PointF, SizeF, float, float, float)

Initializes a new instance of the PiePolygon class.

public PiePolygon(PointF center, SizeF radius, float rotation, float startAngle, float sweepAngle)

Parameters

center PointF

The center point of the pie sector.

radius SizeF

The x and y radii of the pie ellipse.

rotation float

The ellipse rotation in degrees.

startAngle float

The pie start angle in degrees.

sweepAngle float

The pie sweep angle in degrees.

PiePolygon(float, float, float, float, float, float)

Initializes a new instance of the PiePolygon class.

public PiePolygon(float x, float y, float radiusX, float radiusY, float startAngle, float sweepAngle)

Parameters

x float

The x-coordinate of the pie center.

y float

The y-coordinate of the pie center.

radiusX float

The x-radius of the pie ellipse.

radiusY float

The y-radius of the pie ellipse.

startAngle float

The pie start angle in degrees.

sweepAngle float

The pie sweep angle in degrees.

PiePolygon(float, float, float, float, float, float, float)

Initializes a new instance of the PiePolygon class.

public PiePolygon(float x, float y, float radiusX, float radiusY, float rotation, float startAngle, float sweepAngle)

Parameters

x float

The x-coordinate of the pie center.

y float

The y-coordinate of the pie center.

radiusX float

The x-radius of the pie ellipse.

radiusY float

The y-radius of the pie ellipse.

rotation float

The ellipse rotation in degrees.

startAngle float

The pie start angle in degrees.

sweepAngle float

The pie sweep angle in degrees.

Methods

Transform(Matrix4x4)

Transforms the path using the specified matrix.

public override IPath Transform(Matrix4x4 matrix)

Parameters

matrix Matrix4x4

The matrix.

Returns

IPath

A new path with the matrix applied to it.