BlendFunction Enumeration
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Defines how to combine a source color with the destination color already on the render target for color blending.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in Microsoft.Xna.Framework.Graphics.dll)
Syntax
'Declaration
Public Enumeration BlendFunction
public enum BlendFunction
Members
Member name | Description | |
---|---|---|
Add | The result is the destination added to the source. Result = (Source Color * Source Blend) + (Destination Color * Destination Blend) | |
Subtract | The result is the destination subtracted from the source. Result = (Source Color * Source Blend) − (Destination Color * Destination Blend) | |
ReverseSubtract | The result is the source subtracted from the destination. Result = (Destination Color * Destination Blend) − (Source Color * Source Blend) | |
Min | The result is the minimum of the source and destination. Result = min( (Source Color * Source Blend), (Destination Color * Destination Blend) ) | |
Max | The result is the maximum of the source and destination. Result = max( (Source Color * Source Blend), (Destination Color * Destination Blend) ) |
Version Information
Silverlight
Supported in: 5
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.