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

Canvas_SetPixel

Previous pageReturn to chapter overviewNext page

 

Description

 

Draw a single pixel.

 

Syntax

 

n = Canvas_SetPixel( [STEP] x1, y1 [, rgbColor])

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

x1

Number

No

X coordinate of the pixel

y1

Number

No

Y coordinate of the pixel

rgbColor

Number

Yes

RGB color to be used to set the pixel

 

Remarks

 

The coordinate point is specified in the same terms (pixels or dialog units) as the parent dialog.

If the STEP option is included, the x1 and y1 coordinates are relative to the last point referenced (POS).

 

Restrictions

 

See also

 

Examples