public enum BlendMode extends Enum<BlendMode>
| Enum Constant and Description |
|---|
ADD
Blends source and destination colors by performing a component-wise addition.
|
ALPHA
Blends source and destrination colors by using a common alpha blending formula.
|
MULTIPLY
Blends source and destination colors by performing a component-wise multiplication.
|
NONE
Does not blend and overrides the destination color with the source color.
|
| Modifier and Type | Method and Description |
|---|---|
static BlendMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BlendMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlendMode ALPHA
Pixel = Source * Source.a + Dest * (1 - Source.a)public static final BlendMode ADD
Pixel = Source + Destpublic static final BlendMode MULTIPLY
Pixel = Source * Destpublic static final BlendMode NONE
Pixel = Sourcepublic static BlendMode[] values()
for (BlendMode c : BlendMode.values()) System.out.println(c);
public static BlendMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is null