ID2D1Factory::CreateRectangleGeometry (constD2D1_RECT_F*,ID2D1RectangleGeometry**) 方法 (d2d1.h)
语法
HRESULT CreateRectangleGeometry(
const D2D1_RECT_F *rectangle,
ID2D1RectangleGeometry **rectangleGeometry
);
参数
rectangle
类型:[in] const D2D1_RECT_F*
矩形几何图形的坐标。
rectangleGeometry
类型:[out] ID2D1RectangleGeometry**
此方法返回时,包含指向此方法创建的矩形几何图形的指针的地址。
返回值
类型: HRESULT
如果此方法成功,则返回 S_OK。 否则,它将返回 HRESULT 错误代码。
要求
最低受支持的客户端 | 适用于 Windows Vista 的 Windows 7、带有 SP2 和平台更新的 Windows Vista [桌面应用|UWP 应用] |
最低受支持的服务器 | Windows Server 2008 R2、Windows Server 2008 SP2 和 Platform Update for Windows Server 2008 [桌面应用|UWP 应用] |
目标平台 | Windows |
标头 | d2d1.h |
Library | D2d1.lib |
DLL | D2d1.dll |