Class RoundedRectanglePolygon
- Namespace
- SixLabors.ImageSharp.Drawing
- Assembly
- SixLabors.ImageSharp.Drawing.dll
A closed rectangular path with rounded corners.
public sealed class RoundedRectanglePolygon : Polygon, ISimplePath, IPath
- Inheritance
-
RoundedRectanglePolygon
- Implements
- Inherited Members
- Extension Methods
Constructors
RoundedRectanglePolygon(RectangleF, SizeF)
Initializes a new instance of the RoundedRectanglePolygon class.
public RoundedRectanglePolygon(RectangleF rectangle, SizeF radius)
Parameters
rectangleRectangleFThe rectangle bounds.
radiusSizeFThe x and y radii of each corner.
RoundedRectanglePolygon(RectangleF, float)
Initializes a new instance of the RoundedRectanglePolygon class.
public RoundedRectanglePolygon(RectangleF rectangle, float radius)
Parameters
rectangleRectangleFThe rectangle bounds.
radiusfloatThe x and y radius of each corner.
RoundedRectanglePolygon(float, float, float, float, SizeF)
Initializes a new instance of the RoundedRectanglePolygon class.
public RoundedRectanglePolygon(float x, float y, float width, float height, SizeF radius)
Parameters
xfloatThe x-coordinate of the rectangle.
yfloatThe y-coordinate of the rectangle.
widthfloatThe rectangle width.
heightfloatThe rectangle height.
radiusSizeFThe x and y radii of each corner.
RoundedRectanglePolygon(float, float, float, float, float)
Initializes a new instance of the RoundedRectanglePolygon class.
public RoundedRectanglePolygon(float x, float y, float width, float height, float radius)
Parameters
xfloatThe x-coordinate of the rectangle.
yfloatThe y-coordinate of the rectangle.
widthfloatThe rectangle width.
heightfloatThe rectangle height.
radiusfloatThe x and y radius of each corner.
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.