Scales a color value.
Definition
Visual Basic .NET Public Shared Function Scale( _ ByVal c As ColorValue, _ ByVal s As Single _) As ColorValue C# public static ColorValue Scale( ColorValue c, float s); Managed C++ public: static ColorValue Scale( ColorValue c, float s); JScript .NET public static function Scale( c : ColorValue, s : float) : ColorValue;
Parameters
c Microsoft.DirectX.Direct3D.ColorValue. A ColorValue 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
Microsoft.DirectX.Direct3D.ColorValue . A ColorValue object that is the scaled color value.
Feedback? Please provide us with your comments on this topic. For more help, visit the DirectX Developer Center