IGxColor.Brightness

Syntax

Brightness: Double;

Description

The Brightness property returns the brightness of the color from 0.0 to 1.0.

Example

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    d: Double;
Begin
    d:=Panel1.Color.Brightness;
End Sub Button1OnClick;

After executing the example on clicking the button the "d" variable contains the color brightness of the panel named Panel1.

See also:

IGxColor