ID2D1SvgDocument interface
Represents an SVG document.
Members
The ID2D1SvgDocument interface inherits from ID2D1Resource. ID2D1SvgDocument also has these types of members:
Methods
The ID2D1SvgDocument interface has these methods.
| Method | Description |
|---|---|
| CreatePaint | Overloaded. Creates a paint object which can be used to set the 'fill' or 'stroke' properties. |
| CreatePathData |
Creates a path data object which can be used to set a 'd' attribute on a 'path' element. |
| CreatePointCollection |
Creates a points object which can be used to set a points attribute on a polygon or polyline element. |
| CreateStrokeDashArray |
Creates a dash array object which can be used to set the stroke-dasharray property. |
| Deserialize |
Deserializes a subtree from the stream. The stream must have only one root element, but that root element need not be an 'svg' element. The output element is not inserted into this document tree. |
| FindElementById |
Gets the SVG element with the specified ID. |
| GetRoot |
Gets the root element of the document. |
| GetViewportSize |
Returns the size of the initial viewport. |
| Serialize |
Serializes an element and its subtree to XML. The output XML is encoded as UTF-8. |
| SetRoot |
Sets the root element of the document. |
| SetViewportSize |
Sets the size of the initial viewport. |
Requirements
|
Header |
|
|---|---|
|
DLL |
|