Navigation:  thinBasic Modules > UI (User Interface) > Dedicated Control Functions > Canvas Control >

Canvas_Width

Previous pageReturn to chapter overviewNext page

 

Description

 

Set the line width to be used in various other Canvas functions.

 

Syntax

 

n = Canvas_Width(lWidth)

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

lWidth

Number

Yes

Width in pixels

 

Remarks

 

The graphic target must first be selected with Canvas_Attach.

If line width is set to a value greater than 1 (default), the line style is always interpreted to be 0 (solid).

 

Restrictions

 

See also

 

Examples