Microsoft DirectX 9.0 SDK Update (October 2004)

ColorOperator.Scale Method

Language:

Note: This documentation is preliminary and is subject to change.

Scales a color value.

Definition

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

Parameters

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


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center