Click or drag to resize
CanvasCompositionCreateDrawingSession Method (CompositionDrawingSurface, Rect)
[Win10_10586] Creates a CanvasDrawingSession for updating a region of 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,
	Rect updateRect
)

Parameters

drawingSurface
Type: Windows.UI.CompositionCompositionDrawingSurface
updateRect
Type: Windows.FoundationRect

Return Value

Type: CanvasDrawingSession
Remarks

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

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

See Also