ID2D1SvgDocument::CreatePointCollection 方法 (d2d1svg.h)

创建一个 points 对象,该对象可用于在多边形或折线元素上设置 points 属性。

语法

HRESULT CreatePointCollection(
  [in, optional] const D2D1_POINT_2F     *points,
                 UINT32                  pointsCount,
  [out]          ID2D1SvgPointCollection **pointCollection
);

参数

[in, optional] points

类型: const D2D1_POINT_2F*

点集合中的点。

pointsCount

类型: UINT32

points 参数中的点数。

[out] pointCollection

类型: ID2D1SvgPointCollection**

创建的 ID2D1SvgPointCollection 对象。

返回值

类型: HRESULT

此方法返回 HRESULT 成功或错误代码。

要求

要求
目标平台 Windows
标头 d2d1svg.h
DLL Direct2d.dll

另请参阅

ID2D1SvgDocument