WebGraphics

From Xojo Documentation

Revision as of 19:09, 26 March 2021 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

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


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

Notes

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.