Canvas_GradientFill

<< Click to Display Table of Contents >>

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

Canvas_GradientFill

 

Description

 

Fill the currently selected canvas target with a gradient color.

 

Syntax

 

n = Canvas_GradientFill(hWnd, CtrlID, eColorFrom, eColorTo, eDirection)

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

hWnd

Number

No

Window handle

CtrlID

Number

No

Control ID

eColorFrom

Number

No

RBG starting color

eColorTo

Number

No

RGB ending color

eDirection

Number

No

One of the following directions:

%Canvas_GradientFill_Hor

%Canvas_GradientFill_Vert

 

Remarks

 

Restrictions

 

See also

 

Examples