Table of Contents

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

rectangle RectangleF

The rectangle bounds.

radius SizeF

The 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

rectangle RectangleF

The rectangle bounds.

radius float

The 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

x float

The x-coordinate of the rectangle.

y float

The y-coordinate of the rectangle.

width float

The rectangle width.

height float

The rectangle height.

radius SizeF

The 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

x float

The x-coordinate of the rectangle.

y float

The y-coordinate of the rectangle.

width float

The rectangle width.

height float

The rectangle height.

radius float

The x and y radius of each corner.

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.