Language
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Scales a color value.
Definition
Visual Basic Public Shared Function Scale( _
ByVal c As Color, _
ByVal s As Single _
) As ColorC# public static Color Scale(
Colorc,
float s
);C++ public:
static ColorScale(
Colorc,
float s
);JScript public static function Scale(
c : Color,
s : float
) : Color;
Parameters
c System.Drawing.Color
A Colorobject that specifies the source color to scale.
s System.Single
Floating-point value that represents the scaling factor to apply. The scaling factor scales the color, treating it like a 4-D vector. There are no limits on this parameter's value. If s is 1, the resulting color is the original color.
Return Value
System.Drawing.Color
A Colorobject that is the scaled color value.
.gif)