public static enum PorterDuff.Mode extends Enum<PorterDuff.Mode>
Enum Constant and Description |
---|
ADD
Saturate(S + D)
|
CLEAR
[0, 0]
|
DARKEN
[Sa + Da - Sa*Da,
Sc*(1 - Da) + Dc*(1 - Sa) + min(Sc, Dc)]
|
DST
[Da, Dc]
|
DST_ATOP
[Sa, Sa * Dc + Sc * (1 - Da)]
|
DST_IN
[Sa * Da, Sa * Dc]
|
DST_OUT
[Da * (1 - Sa), Dc * (1 - Sa)]
|
DST_OVER
[Sa + (1 - Sa)*Da, Rc = Dc + (1 - Da)*Sc]
|
LIGHTEN
[Sa + Da - Sa*Da,
Sc*(1 - Da) + Dc*(1 - Sa) + max(Sc, Dc)]
|
MULTIPLY
[Sa * Da, Sc * Dc]
|
OVERLAY |
SCREEN
[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
|
SRC
[Sa, Sc]
|
SRC_ATOP
[Da, Sc * Da + (1 - Sa) * Dc]
|
SRC_IN
[Sa * Da, Sc * Da]
|
SRC_OUT
[Sa * (1 - Da), Sc * (1 - Da)]
|
SRC_OVER
[Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]
|
XOR
[Sa + Da - 2 * Sa * Da, Sc * (1 - Da) + (1 - Sa) * Dc]
|
Modifier and Type | Field and Description |
---|---|
int |
nativeInt |
Modifier and Type | Method and Description |
---|---|
static PorterDuff.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PorterDuff.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PorterDuff.Mode CLEAR
public static final PorterDuff.Mode SRC
public static final PorterDuff.Mode DST
public static final PorterDuff.Mode SRC_OVER
public static final PorterDuff.Mode DST_OVER
public static final PorterDuff.Mode SRC_IN
public static final PorterDuff.Mode DST_IN
public static final PorterDuff.Mode SRC_OUT
public static final PorterDuff.Mode DST_OUT
public static final PorterDuff.Mode SRC_ATOP
public static final PorterDuff.Mode DST_ATOP
public static final PorterDuff.Mode XOR
public static final PorterDuff.Mode DARKEN
public static final PorterDuff.Mode LIGHTEN
public static final PorterDuff.Mode MULTIPLY
public static final PorterDuff.Mode SCREEN
public static final PorterDuff.Mode ADD
public static final PorterDuff.Mode OVERLAY
public static PorterDuff.Mode[] values()
for (PorterDuff.Mode c : PorterDuff.Mode.values()) System.out.println(c);
public static PorterDuff.Mode 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