Microsoft DirectX 9.0 SDK Update (October 2004)

ColorOperator.Add Method

Language:

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

Adds two color values together to create a new color value.

Definition

Visual Basic .NET Public Shared Function Add( _
    ByVal c1 As Color, _
    ByVal c2 As Color _
) As Color
C# public static Color Add(
    Color c1,
    Color c2
);
Managed C++ public: static Color Add(
    Color c1,
    Color c2
);
JScript .NET public static function Add(
    c1 : Color,
    c2 : Color
) : Color;

Parameters

c1 System.Drawing.Color. A Color Leave Site object that specifies the color to add.
c2 System.Drawing.Color. A Color Leave Site object that specifies the color to add.

Return Value

System.Drawing.Color . Returns a Color Leave Site object that represents the sum of the two colors added together.

See Also


© 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