Microsoft.Xna.Framework.Graphics
Enum Blend

java.lang.Object
  extended by java.lang.Enum<Blend>
      extended by Microsoft.Xna.Framework.Graphics.Blend
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Blend>

public enum Blend
extends java.lang.Enum<Blend>

Defines color blending factors.

Author:
Halofreak1990

Enum Constant Summary
BlendFactor
          Each component of the color is multiplied by a constant set in BlendFactor.
DestinationAlpha
          Each component of the color is multiplied by the alpha value of the destination.
DestinationColor
          Each component color is multiplied by the destination color.
InverseBlendFactor
          Each component of the color is multiplied by the inverse of a constant set in BlendFactor.
InverseDestinationAlpha
          Each component of the color is multiplied by the inverse of the alpha value of the destination.
InverseDestinationColor
          Each component of the color is multiplied by the inverse of the destination color.
InverseSourceAlpha
          Each component of the color is multiplied by the inverse of the alpha value of the source.
InverseSourceColor
          Each component of the color is multiplied by the inverse of the source color.
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.
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.
SourceColor
          Each component of the color is multiplied by the source color.
Zero
          Each component of the color is multiplied by (0, 0, 0, 0).
 
Method Summary
static Blend valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Blend[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

One

public static final Blend One
Each component of the color is multiplied by (1, 1, 1, 1).


Zero

public static final Blend Zero
Each component of the color is multiplied by (0, 0, 0, 0).


SourceColor

public static final Blend SourceColor
Each component of the color is multiplied by the source color. This can be represented as (Rs, Gs, Bs, As), where R, G, B, and A respectively stand for the red, green, blue, and alpha source values.


InverseSourceColor

public static final Blend InverseSourceColor
Each component of the color is multiplied by the inverse of the source color. This can be represented as (1 − Rs, 1 − Gs, 1 − Bs, 1 − As) where R, G, B, and A respectively stand for the red, green, blue, and alpha destination values.


SourceAlpha

public static final Blend SourceAlpha
Each component of the color is multiplied by the alpha value of the source. This can be represented as (As, As, As, As), where As is the alpha source value.


InverseSourceAlpha

public static final Blend InverseSourceAlpha
Each component of the color is multiplied by the inverse of the alpha value of the source. This can be represented as (1 − As, 1 − As, 1 − As, 1 − As), where As is the alpha destination value.


DestinationColor

public static final Blend DestinationColor
Each component color is multiplied by the destination color. This can be represented as (Rd, Gd, Bd, Ad), where R, G, B, and A respectively stand for red, green, blue, and alpha destination values.


InverseDestinationColor

public static final Blend InverseDestinationColor
Each component of the color is multiplied by the inverse of the destination color. This can be represented as (1 − Rd, 1 − Gd, 1 − Bd, 1 − Ad), where Rd, Gd, Bd, and Ad respectively stand for the red, green, blue, and alpha destination values.


DestinationAlpha

public static final Blend DestinationAlpha
Each component of the color is multiplied by the alpha value of the destination. This can be represented as (Ad, Ad, Ad, Ad), where Ad is the destination alpha value.


InverseDestinationAlpha

public static final Blend InverseDestinationAlpha
Each component of the color is multiplied by the inverse of the alpha value of the destination. This can be represented as (1 − Ad, 1 − Ad, 1 − Ad, 1 − Ad), where Ad is the alpha destination value.


BlendFactor

public static final Blend BlendFactor
Each component of the color is multiplied by a constant set in BlendFactor.


InverseBlendFactor

public static final Blend InverseBlendFactor
Each component of the color is multiplied by the inverse of a constant set in BlendFactor.


SourceAlphaSaturation

public static final Blend 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. This can be represented as (f, f, f, 1), where f = min(A, 1 − Ad).

Method Detail

values

public static Blend[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Blend c : Blend.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Blend valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null