Blend Enumeration (Microsoft.Xna.Framework.Graphics)

Defines a blend mode.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public enum Blend

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The Blend type exposes the following members.

  Platforms Name Description
BlendFactor Each component of the color is multiplied by a constant in the BlendFactor
DestinationAlpha Each component of the color is multiplied by the alpha value of the destination. {Ad, Ad, Ad, Ad}, where Ad is the destination alpha value. 
DestinationColor Each component color is multiplied by the destination color. {Rd, Gd, Bd, Ad}, where Rd, Gd, Bd, Ad are color destination values. 
InverseBlendFactor Each component of the color is multiplied by a inversed constant in the BlendFactor
InverseDestinationAlpha Each component of the color is multiplied by the inversed alpha value of the destination. {1 − Ad, 1 − Ad, 1 − Ad, 1 − Ad}, where Ad is the destination alpha value. 
InverseDestinationColor Each component of the color is multiplied by the inversed destination color. {1 − Rd, 1 − Gd, 1 − Bd, 1 − Ad}, where Rd, Gd, Bd, Ad are color destination values. 
InverseSourceAlpha Each component of the color is multiplied by the inverse of the alpha value of the source. {1 − As, 1 − As, 1 − As, 1 − As}, where As is the source alpha value. 
InverseSourceColor Each component of the color is multiplied by the inverse of the source color. {1 − Rs, 1 − Gs, 1 − Bs, 1 − As}, where Rs, Gs, Bs, As are color source values. 
One Each component of the color is multiplied by {1, 1, 1, 1}. 
SourceAlpha Each component of the color is multiplied by the alpha value of the source. {As, As, As, As}, where As is the source alpha value. 
SourceAlphaSaturation Each component of the color is multiplied by either the alpha of the source color, or the inverse of the alpha of the source color, whichever is greater. {f, f, f, 1}, where f = min(As, 1 − As), where As is the source alpha value. 
SourceColor Each component of the color is multiplied by the source color. {Rs, Gs, Bs, As}, where Rs, Gs, Bs, As are color source values. 
Zero Each component of the color is multiplied by {0, 0, 0, 0}. 
Top
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web