Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ID2D1DeviceContext5::CreateSvgDocument method

Creates an SVG document from a stream.

Syntax


HRESULT CreateSvgDocument(
  [in, optional] IStream          *inputXmlStream,
                 D2D1_SIZE_F      viewportSize,
  [out]          ID2D1SvgDocument **svgDocument
);

Parameters

inputXmlStream [in, optional]

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.

svgDocument [out]

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

Header

D2d1_3.h

DLL

D2d1.dll

See also

ID2D1DeviceContext5

 

 

Show:
© 2017 Microsoft