ID2D1SvgPathData interface
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'.
Members
The ID2D1SvgPathData interface inherits from ID2D1SvgAttribute. ID2D1SvgPathData also has these types of members:
Methods
The ID2D1SvgPathData interface has these methods.
| Method | Description |
|---|---|
| CreatePathGeometry |
Creates a path geometry object representing the path data. |
| GetCommands |
Gets commands from the commands array. |
| GetCommandsCount |
Gets the size of the commands array. |
| GetSegmentData |
Gets data from the segment data array. |
| GetSegmentDataCount |
Gets the size of the segment data array. |
| RemoveCommandsAtEnd |
Removes commands from the end of the commands array. |
| RemoveSegmentDataAtEnd |
Removes data from the end of the segment data array. |
| UpdateCommands |
Updates the commands array. Existing commands not updated by this method are preserved. The array is resized larger if necessary to accomodate the new commands. |
| UpdateSegmentData |
Updates the segment data array. Existing segment data not updated by this method are preserved. The array is resized larger if necessary to accomodate the new segment data. |
Requirements
|
Header |
|
|---|---|
|
DLL |
|