Version

ScaleColor Method (Platform)

Scales a color by a given value.
Syntax
'Declaration
 
Public Shared Function ScaleColor( _
   ByVal minColor As Color, _
   ByVal maxColor As Color, _
   ByVal value As Double _
) As Color
public static Color ScaleColor( 
   Color minColor,
   Color maxColor,
   double value
)

Parameters

minColor
The minimum color.
maxColor
The maximum color.
value
A value between 0 and 1 indicating how far to scale the color.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also