ColorOperator.Modulate(ColorValue,ColorValue) Method (Microsoft.DirectX.Direct3D)
Blends two colors.
Definition
Visual Basic Public Shared Function Modulate( _
ByVal c1 As ColorValue, _
ByVal c2 As ColorValue _
) As ColorValueC# public static ColorValue Modulate(
ColorValue c1,
ColorValue c2
);C++ public:
static ColorValue Modulate(
ColorValue c1,
ColorValue c2
);JScript public static function Modulate(
c1 : ColorValue,
c2 : ColorValue
) : ColorValue;
Parameters
c1 Microsoft.DirectX.Direct3D.ColorValue
A ColorValue object that specifies the first source color to modulate.c2 Microsoft.DirectX.Direct3D.ColorValue
A ColorValue object that specifies the second source color to modulate.
Return Value
Microsoft.DirectX.Direct3D.ColorValue
A ColorValue object that represents the result of the blending operation.
Remarks
This method blends two colors by multiplying matching color components.