RadialGradientBrush.OnDraw Method

Definition

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

protected override bool OnDraw (Microsoft.Graphics.Canvas.CanvasDevice device, Microsoft.Graphics.Canvas.CanvasDrawingSession session, System.Numerics.Vector2 size);
override this.OnDraw : Microsoft.Graphics.Canvas.CanvasDevice * Microsoft.Graphics.Canvas.CanvasDrawingSession * System.Numerics.Vector2 -> bool
Protected Overrides 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