WebGraphics.PenWidth

From Xojo Documentation

Property (As Integer )
aWebGraphics.PenWidth = newIntegerValue
or
IntegerValue = aWebGraphics.PenWidth

Supported for all project types and targets.

The drawing pen is always square, so this specifies both the width/height (in pixels) used when drawing lines, ovals and rectangles.

Notes

On the desktop, both the PenHeight and PenWidth are specified. This is not needed for web apps because the drawing pen is always square.

Example

This example sets the PenWidth to 5 pixels to draw a rectangle with a thick border:

g.PenWidth = 5
g.DrawRect(150, 10, 100, 100)