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

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,
	float x,
	float y
)

Parameters

svgDocument
Type: Microsoft.Graphics.Canvas.SvgCanvasSvgDocument
viewportSize
Type: Windows.FoundationSize
x
Type: SystemSingle
y
Type: SystemSingle
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.

The specified coordinates are in device-independent units.

See Also