ID2D1DeviceContext5::CreateSvgDocument method (d2d1_3.h)
Creates an SVG document from a stream.
Syntax
HRESULT CreateSvgDocument(
[in, optional] IStream *inputXmlStream,
D2D1_SIZE_F viewportSize,
[out] ID2D1SvgDocument **svgDocument
);
Parameters
[in, optional] inputXmlStream
Type: IStream*
An input stream containing the SVG XML document. If null, an empty document is created.
viewportSize
Type: D2D1_SIZE_F
Size of the initial viewport of the document.
[out] svgDocument
Type: ID2D1SvgDocument**
When this method returns, contains a pointer to the created SVG document.
Return value
Type: HRESULT
This method returns an HRESULT success or error code.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d2d1_3.h |
DLL | D2d1.dll |