WebCanvas.Paint

From Xojo Documentation

Event


WebCanvas.Paint(g as WebGraphics)

New in 2012r1

Supported for all project types and targets.

The area needs to be redrawn, such as when it has been resized.

Sample Code

This code draws a red rectangle in the Canvas:

g.ForeColor = &cff0000
g.FillRect(0, 0, 100, 100)