D2D1_ROUNDED_RECT structure (d2d1.h)
Contains the dimensions and corner radii of a rounded rectangle.
Syntax
typedef struct D2D1_ROUNDED_RECT {
D2D1_RECT_F rect;
FLOAT radiusX;
FLOAT radiusY;
} D2D1_ROUNDED_RECT;
Members
rect
Type: D2D1_RECT_F
The coordinates of the rectangle.
radiusX
Type: FLOAT
The x-radius for the quarter ellipse that is drawn to replace every corner of the rectangle.
radiusY
Type: FLOAT
The y-radius for the quarter ellipse that is drawn to replace every corner of the rectangle.
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).
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps] |
Header | d2d1.h |