Size

SIZE
The drawing pen in a graphic object is one pixel wide by default. Change the size of the pen with the **Size** command. The synax is as follows:


 * 1) handle SIZE(s) - Set the size of the drawing pen to s pixels

The following demo creates a graphic object, changes the pen to be five pixels wide, draws a box and renders it onto the web page.

code format="vbnet" 'create a graphic object graphic #g, 300, 300

'place the drawing pen at 10,10
 * 1) g place(10,10)

'make a 5 pixel wide drawing pen
 * 1) g size(5)

'draw a box
 * 1) g box(290, 290)

'add graphic to web page render #g code