ColorOperator.Negative(Color) Method (Microsoft.DirectX.Direct3D)

Creates a negative color value from a given color value.

Definition

Visual Basic Public Shared Function Negative( _
    ByVal c As ColorLeave Site _
) As ColorLeave Site
C# public static ColorLeave Site Negative(
    ColorLeave Site c
);
C++ public:
static ColorLeave Site Negative(
    ColorLeave Site c
);
JScript public static function Negative(
    c : ColorLeave Site
) : ColorLeave Site;

Parameters

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

Return Value

System.Drawing.Color
A ColorLeave 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.