ID2D1SvgPathData interface (d2d1svg.h)

Interface describing SVG path data. Path data can be set as the 'd' attribute on a 'path' element.

The path data set is factored into two arrays. The segment data array stores all numbers and the commands array stores the set of commands. Unlike the string data set in the d attribute, each command in this representation uses a fixed number of elements in the segment data array. Therefore, the path 'M 0,0 100,0 0,100 Z' is represented as: 'M0,0 L100,0 L0,100 Z'. This is split into two arrays, with the segment data containing '0,0 100,0 0,100', and the commands containing 'M L L Z'.

Inheritance

The ID2D1SvgPathData interface inherits from ID2D1SvgAttribute. ID2D1SvgPathData also has these types of members:

Methods

The ID2D1SvgPathData interface has these methods.

 
ID2D1SvgPathData::CreatePathGeometry

Creates a path geometry object representing the path data.
ID2D1SvgPathData::GetCommands

Gets commands from the commands array.
ID2D1SvgPathData::GetCommandsCount

Gets the size of the commands array.
ID2D1SvgPathData::GetSegmentData

Gets data from the segment data array.
ID2D1SvgPathData::GetSegmentDataCount

Gets the size of the segment data array.
ID2D1SvgPathData::RemoveCommandsAtEnd

Removes commands from the end of the commands array.
ID2D1SvgPathData::RemoveSegmentDataAtEnd

Removes data from the end of the segment data array.
ID2D1SvgPathData::UpdateCommands

Updates the commands array. Existing commands not updated by this method are preserved. The array is resized larger if necessary to accommodate the new commands.
ID2D1SvgPathData::UpdateSegmentData

Updates the segment data array. Existing segment data not updated by this method are preserved. The array is resized larger if necessary to accommodate the new segment data.

Requirements

Requirement Value
Target Platform Windows
Header d2d1svg.h