ID2D1RectangleGeometry interface

Describes a two-dimensional rectangle.

When to implement

Custom implementations are not supported.

Members

The ID2D1RectangleGeometry interface inherits from ID2D1Geometry. ID2D1RectangleGeometry also has these types of members:

Methods

The ID2D1RectangleGeometry interface has these methods.

MethodDescription
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 | Windows Store apps]

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Header

D2d1.h

Library

D2d1.lib

DLL

D2d1.dll

See also

Geometries Overview

 

 

Community Additions

ADD
Show:
© 2014 Microsoft