Click or drag to resize
CanvasDrawingSessionDrawSvg Method (CanvasSvgDocument, Size)
[Win10_15063] Draws an SVG document with the specified viewport size at the origin.

Namespace:  Microsoft.Graphics.Canvas
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public void DrawSvg(
	CanvasSvgDocument svgDocument,
	Size viewportSize
)

Parameters

svgDocument
Type: Microsoft.Graphics.Canvas.SvgCanvasSvgDocument
viewportSize
Type: Windows.FoundationSize
Remarks

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

The viewport size is in device-independent units. Its width and height must be positive and nonzero. The viewport is separate from the SVG <viewbox> element; a viewbox is within a viewport.

See Also