ControlPaint::Light Method (Color, Single)

 

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

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
static Color Light(
	Color baseColor,
	float percOfLightLight
)

Parameters

baseColor
Type: System.Drawing::Color

The Color to be lightened.

percOfLightLight
Type: System::Single

The percentage to lighten the specified Color.

Return Value

Type: System.Drawing::Color

A Color that represents the light color on the control.

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

.NET Framework
Available since 1.1
Return to top
Show: