Click or drag to resize
CanvasComposition.CreateDrawingSession 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.Composition.CompositionDrawingSurface
updateRect
Type: Windows.Foundation.Rect

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