RoundedRect function (d2d1helper.h)

Creates a D2D1_ROUNDED_RECT structure.

Syntax

D2D1_ROUNDED_RECT RoundedRect(
  [in, ref] const D2D1_RECT_F & rect,
            FLOAT               radiusX,
            FLOAT               radiusY
);

Parameters

[in, ref] rect

Type: const D2D1_RECT_F

The size and position 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.

Return value

Type: D2D1_ROUNDED_RECT

The new rounded rectangle.

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]
Target Platform Windows
Header d2d1helper.h
Library D2d1.lib
DLL D2d1.dll