System.Windows.Forms.ControlPaint.Light Method

Creates a new light color object for the control from the specified color and lightens it by the specified percentage.

Syntax

public static System.Drawing.Color Light (System.Drawing.Color baseColor, float percOfLightLight)

Parameters

baseColor
The System.Drawing.Color to be lightened.
percOfLightLight
The percentage to lighten the specified System.Drawing.Color.

Returns

A System.Drawing.Color that represents the light color on the control.

Remarks

If the specified System.Drawing.Color is one of the System.Drawing.SystemColors, the color is converted to a System.Drawing.SystemColors.ControlLight color; otherwise, the color's luminosity value is decreased.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0