Click or drag to resize
CanvasCompositionCreateDrawingSession Method (CompositionDrawingSurface)
[Win10_10586] Creates a CanvasDrawingSession for drawing to the given CompositionDrawingSurface.

Namespace:  Microsoft.Graphics.Canvas.UI.Composition
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public static CanvasDrawingSession CreateDrawingSession(
	CompositionDrawingSurface drawingSurface
)

Parameters

drawingSurface
Type: Windows.UI.CompositionCompositionDrawingSurface

Return Value

Type: CanvasDrawingSession
Remarks

This API is only available when running on Windows 10 build 10586 (released November 2015) or greater.

The initial content of the drawing surface is undefined, so apps should ensure that they either call Clear or draw over the entire surface.

The drawing session will use default DPI (96), in which DIPs and pixels are the same.

See Also