Share via


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

Scales a color value.

Definition

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

Parameters

c System.Int32
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.Int32