Edit

Share via


CanvasBrushBase.OnDraw(CanvasDevice, CanvasDrawingSession, Vector2) Method

Definition

Implemented by parent class and called when canvas is being constructed for brush.

protected abstract bool OnDraw(Microsoft.Graphics.Canvas.CanvasDevice device, Microsoft.Graphics.Canvas.CanvasDrawingSession session, System.Numerics.Vector2 size);
abstract member OnDraw : Microsoft.Graphics.Canvas.CanvasDevice * Microsoft.Graphics.Canvas.CanvasDrawingSession * System.Numerics.Vector2 -> bool
Protected MustOverride Function OnDraw (device As CanvasDevice, session As CanvasDrawingSession, size As Vector2) As Boolean

Parameters

device
Microsoft.Graphics.Canvas.CanvasDevice

Canvas device.

session
Microsoft.Graphics.Canvas.CanvasDrawingSession

Canvas drawing session.

size
Vector2

Size of surface to draw on.

Returns

True if drawing was completed and the brush is ready, otherwise return False to not create brush yet.

Applies to