Dark() – Creates a darker color from the specified color.
DarkDark() – Creates a much darker color.
Light() – Creates a lighter color.
LightLight() – Creates a much lighter color.
All four static methods accept a Color structure argument and return the new Color. The Dark and Light methods are overloaded and can also accept a floating point percentage of their respective DarkDark or LightLight colors, where 1.0 equals 100%:
public static Color Dark( Color baseColor ) public static Color Dark( Color baseColor, float pctOfDarkDark ) public static Color DarkDark( Color baseColor )
Sample code:
this.BackColor=System.Windows.Forms.ControlPaint.LightLight(Color.AliceBlue);
Comment