Table of Contents

Struct RoundedRect

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

Contains the dimensions and corner radii of a rounded rectangle.
D2D1_ROUNDED_RECT

public struct RoundedRect : IEquatable<RoundedRect>
Implements
Inherited Members

Remarks

Each corner of the rectangle specified by rect is replaced with a quarter ellipse, with a radius in each direction specified by radiusX and radiusY.

If radiusX is greater than or equal to half the width of the rectangle, and radiusY is greater than or equal to one-half the height, then the rounded rectangle is an ellipse with the same width and height of rect.

Even when both radiusX and radiusY are zero, the rounded rectangle is different from a rectangle. When stroked, the corners of the rounded rectangle are roundly joined, not mitered (square).

Constructors

RoundedRect(Point2Float, SizeFloat, float)
RoundedRect(Point2Float, SizeFloat, float, float)
RoundedRect(Point2Float, float, float, float)
RoundedRect(Point2Float, float, float, float, float)
RoundedRect(RectFloat, float)
RoundedRect(RectFloat, float, float)
RoundedRect(float, float, SizeFloat, float)
RoundedRect(float, float, SizeFloat, float, float)
RoundedRect(float, float, float, float, float)
RoundedRect(float, float, float, float, float, float)

Properties

RadiusX

The x-radius for the quarter ellipse that is drawn to replace every corner of the rectangle.

RadiusY

The y-radius for the quarter ellipse that is drawn to replace every corner of the rectangle.

Rect

The coordinates of the rectangle.

Methods

Equals(RoundedRect)
Equals(in RoundedRect)
Equals(object?)
GetHashCode()

Operators

operator ==(in RoundedRect, in RoundedRect)
operator !=(in RoundedRect, in RoundedRect)