Click or drag to resize
CanvasSvgDocumentLoadAsync Method
[Win10_15063] Loads an SVG document from a stream.

Namespace:  Microsoft.Graphics.Canvas.Svg
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public static IAsyncOperation<CanvasSvgDocument> LoadAsync(
	ICanvasResourceCreator resourceCreator,
	IRandomAccessStream stream
)

Parameters

resourceCreator
Type: Microsoft.Graphics.CanvasICanvasResourceCreator
stream
Type: Windows.Storage.StreamsIRandomAccessStream

Return Value

Type: IAsyncOperationCanvasSvgDocument
Remarks

This API is only available when running on Windows 10 build 15063 (Creators Update) or greater.

Both UTF-8 and UTF-16 text are supported.

The passed-in string must be a valid SVG document. Currently, Win2D supports a subset of SVG 1.1. For more details, see Direct2D's page about SVG support. Content which is valid SVG but is unsupported by Win2D will not cause a failure; it will be ignored.

See Also