ID2D1SvgDocument::CreatePointCollection method (d2d1svg.h)

Creates a points object which can be used to set a points attribute on a polygon or polyline element.

Syntax

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

Parameters

[in, optional] points

Type: const D2D1_POINT_2F*

The points in the point collection.

pointsCount

Type: UINT32

The number of points in the points argument.

[out] pointCollection

Type: ID2D1SvgPointCollection**

The created ID2D1SvgPointCollection object.

Return value

Type: HRESULT

This method returns an HRESULT success or error code.

Requirements

Requirement Value
Target Platform Windows
Header d2d1svg.h
DLL Direct2d.dll

See also

ID2D1SvgDocument