Click or drag to resize
CanvasImageSourceCreateDrawingSession Method (Color, Rect)
Returns a new drawing session for updating a region of the image source.

Namespace:  Microsoft.Graphics.Canvas.UI.Xaml
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public CanvasDrawingSession CreateDrawingSession(
	Color clearColor,
	Rect updateRectangle
)

Parameters

clearColor
Type: Windows.UIColor
updateRectangle
Type: Windows.FoundationRect

Return Value

Type: CanvasDrawingSession
Remarks
The specified region of the image is cleared to the specified color before this method returns. The region is in device independent pixels (DIPs).
See Also