ID2D1SvgDocument::CreatePathData method (d2d1svg.h)

Creates a path data object which can be used to set a 'd' attribute on a 'path' element.

Syntax

HRESULT CreatePathData(
  [in, optional] const FLOAT                 *segmentData,
                 UINT32                      segmentDataCount,
  [in, optional] const D2D1_SVG_PATH_COMMAND *commands,
                 UINT32                      commandsCount,
  [out]          ID2D1SvgPathData            **pathData
);

Parameters

[in, optional] segmentData

Type: const FLOAT*

An array of segment data.

segmentDataCount

Type: UINT32

Number of items in segmentData.

[in, optional] commands

Type: const D2D1_SVG_PATH_COMMAND*

An array of path commands.

commandsCount

Type: UINT32

The number of items in commands.

[out] pathData

Type: ID2D1SvgPathData**

When this method completes, this points to the created path data.

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