MobileCanvas.Paint

From Xojo Documentation

Event


MobileCanvas.Paint(g As Graphics)

Supported on Mobile.

Called when the Canvas needs to be redrawn.

Sample Code

To draw a blue rectangle in the Canvas:

g.DrawingColor = Color.Blue
g.FillRectangle(0, 0, g.Width, g.Height)