From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

iOSCanvas.Paint(g As iOSGraphics)

Supported on Mobile (iOS).

Called when the Canvas needs to update its graphical display.

Sample Code

To draw a blue rectangle in the Canvas:

g.FillColor = Color.RGB(0, 0, 255)
g.FillRect(0, 0, g.Width, g.Height)