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
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.