System.Windows.Forms.ControlPaint.Light Method

Creates a new light color object for the control from the specified color.

Syntax

public static System.Drawing.Color Light (System.Drawing.Color baseColor)

Parameters

baseColor
The System.Drawing.Color to be lightened.

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