Language

ColorOperator.Scale(Color,Single) Method (Microsoft.DirectX.Direct3D)

Scales a color value.

Definition

Visual Basic Public Shared Function Scale( _
    ByVal c As ColorLeave Site, _
    ByVal s As Single _
) As ColorLeave Site
C# public static ColorLeave Site Scale(
    ColorLeave Site c,
    float s
);
C++ public:
static ColorLeave Site Scale(
    ColorLeave Site c,
    float s
);
JScript public static function Scale(
    c : ColorLeave Site,
    s : float
) : ColorLeave Site;

Parameters

c System.Drawing.Color
A ColorLeave Site object 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 ColorLeave Site object that is the scaled color value.