MobileCanvas.Paint

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
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)