ID2D1RectangleGeometry interface

Describes a two-dimensional rectangle.

Methods

The ID2D1RectangleGeometry interface has these methods.

Method Description
ID2D1RectangleGeometry::GetRect Retrieves the rectangle that describes the rectangle geometry's dimensions.

Remarks

Creating ID2D1RectangleGeometry Objects

To create a rectangle geometry, use the ID2D1Factory::CreateRectangleGeometry method.

Direct2D geometries are immutable and device-independent resources created by ID2D1Factory. In general, you should create geometries once and retain them for the life of the application, or until they need to be modified. For more information about device-independent and device-dependent resources, see the Resources Overview.

Requirements

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

See also

Geometries Overview

ID2D1Geometry