Canvas_SetPixel

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Types > Canvas Control > Canvas Control Commands >

Canvas_SetPixel

 

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