Microsoft DirectX 9.0 SDK Update (October 2004)

ColorOperator.Negative Method

Language:

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

Creates a negative color value from a given color value.

Definition

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

Parameters

c System.Drawing.Color. A Color Leave Site object that specifies the source color.

Return Value

System.Drawing.Color . A Color Leave Site object that represents the negative color value of the source color.

Remarks

The input alpha channel is copied, unmodified, to the output alpha channel.


© 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