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
centerPointFThe center point of the pie sector.
radiusSizeFThe x and y radii of the pie ellipse.
startAnglefloatThe pie start angle in degrees.
sweepAnglefloatThe 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
centerPointFThe center point of the pie sector.
radiusSizeFThe x and y radii of the pie ellipse.
rotationfloatThe ellipse rotation in degrees.
startAnglefloatThe pie start angle in degrees.
sweepAnglefloatThe 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
xfloatThe x-coordinate of the pie center.
yfloatThe y-coordinate of the pie center.
radiusXfloatThe x-radius of the pie ellipse.
radiusYfloatThe y-radius of the pie ellipse.
startAnglefloatThe pie start angle in degrees.
sweepAnglefloatThe 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
xfloatThe x-coordinate of the pie center.
yfloatThe y-coordinate of the pie center.
radiusXfloatThe x-radius of the pie ellipse.
radiusYfloatThe y-radius of the pie ellipse.
rotationfloatThe ellipse rotation in degrees.
startAnglefloatThe pie start angle in degrees.
sweepAnglefloatThe pie sweep angle in degrees.
Methods
Transform(Matrix4x4)
Transforms the path using the specified matrix.
public override IPath Transform(Matrix4x4 matrix)
Parameters
matrixMatrix4x4The matrix.
Returns
- IPath
A new path with the matrix applied to it.