Enum Constant and Description |
---|
DST_OVER
The source pixels are drawn behind the destination pixels.
|
SRC
The source pixels replace the destination pixels.
|
SRC_IN
Keeps the source pixels that cover the destination pixels, discards the remaining source and destination pixels.
|
SRC_OVER
The source pixels are drawn over the destination pixels.
|
Modifier and Type | Method and Description |
---|---|
static BlendMode |
valueOf(java.lang.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 SRC
\(\alpha_{out} = \alpha_{src}\)
\(C_{out} = C_{src}\)
public static final BlendMode SRC_OVER
\(\alpha_{out} = \alpha_{src} + (1 - \alpha_{src}) * \alpha_{dst}\)
\(C_{out} = C_{src} + (1 - \alpha_{src}) * C_{dst}\)
public static final BlendMode DST_OVER
\(\alpha_{out} = \alpha_{dst} + (1 - \alpha_{dst}) * \alpha_{src}\)
\(C_{out} = C_{dst} + (1 - \alpha_{dst}) * C_{src}\)
public static final BlendMode SRC_IN
\(\alpha_{out} = \alpha_{src} * \alpha_{dst}\)
\(C_{out} = C_{src} * \alpha_{dst}\)
public static BlendMode[] values()
for (BlendMode c : BlendMode.values()) System.out.println(c);
public static BlendMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null