From Xojo Documentation

Class (inherits from Object)

New in 2012r1

WebGraphics class objects are used for drawing text, lines, rectangles, ovals, and pictures from within the a WebCanvas.Paint event.

Bold Height fa-lock-32.png PenSize
DrawingColor Italic TextAlignment
FontName LineCap Width fa-lock-32.png
FontSize LineJoin

ClearRectangle DrawRectangle FillRectangle
DrawLine DrawRoundRectangle FillRoundRectangle
DrawOval DrawText Restore
DrawPicture FillOval Save
DrawPolygon FillPolygon Shadow
LineCapTypes LineJoinTypes


The X and Y parameters of the methods are the horizontal and vertical coordinates of the left-top corner of the object being drawn or cleared. The origin (0,0) is the top-left corner of the control or window in which the drawing is being done.

For example, 50,50 is 50 pixels to the right and 50 pixels down from the top-left of the window or control.