ID2D1SvgDocument::Serialize method (d2d1svg.h)

Serializes an element and its subtree to XML. The output XML is encoded as UTF-8.

Syntax

HRESULT Serialize(
  IStream         *outputXmlStream,
  ID2D1SvgElement *subtree
);

Parameters

outputXmlStream

Type: IStream*

An output stream to contain the SVG XML subtree.

subtree

Type: ID2D1SvgElement*

The root of the subtree. If null, the entire document is serialized.

Return value

Type: HRESULT

This method returns an HRESULT success or error code.

Requirements

   
Target Platform Windows
Header d2d1svg.h
DLL Direct2d.dll

See also

ID2D1SvgDocument