public static final enum PorterDuff.Mode
extends Enum<PorterDuff.Mode>
java.lang.Object | ||
↳ | java.lang.Enum<android.graphics.PorterDuff.Mode> | |
↳ | android.graphics.PorterDuff.Mode |
Enum values |
|
---|---|
PorterDuff.Mode |
ADD 饱和(S + D) |
PorterDuff.Mode |
CLEAR [0,0] |
PorterDuff.Mode |
DARKEN [Sa + Da-Sa * Da,Sc *(1-Da)+ Dc *(1-Sa)+ min(Sc,Dc)] |
PorterDuff.Mode |
DST [Da,Dc] |
PorterDuff.Mode |
DST_ATOP [Sa,Sa * Dc + Sc *(1-Da)] |
PorterDuff.Mode |
DST_IN [Sa * Da,Sa * Dc] |
PorterDuff.Mode |
DST_OUT [Da *(1-Sa),Dc *(1-Sa)] |
PorterDuff.Mode |
DST_OVER [Sa +(1-Sa)* Da,Rc = Dc +(1-Da)* Sc] |
PorterDuff.Mode |
LIGHTEN [Sa + Da-Sa * Da,Sc *(1-Da)+ Dc *(1-Sa)+ max(Sc,Dc)] |
PorterDuff.Mode |
MULTIPLY [Sa * Da,Sc * Dc] |
PorterDuff.Mode |
OVERLAY
|
PorterDuff.Mode |
SCREEN [Sa + Da-Sa * Da,Sc + Dc-Sc * Dc] |
PorterDuff.Mode |
SRC [Sa,Sc] |
PorterDuff.Mode |
SRC_ATOP [Da,Sc * Da +(1-Sa)* Dc] |
PorterDuff.Mode |
SRC_IN [Sa * Da,Sc * Da] |
PorterDuff.Mode |
SRC_OUT [Sa *(1-Da),Sc *(1-Da)] |
PorterDuff.Mode |
SRC_OVER [Sa +(1-Sa)* Da,Rc = Sc +(1-Sa)* Dc] |
PorterDuff.Mode |
XOR [Sa + Da_2 * Sa * Da,Sc *(1-Da)+(1-Sa)* Dc] |
Public methods |
|
---|---|
static PorterDuff.Mode |
valueOf(String name) |
static final Mode[] |
values() |
Inherited methods |
|
---|---|
From class java.lang.Enum
|
|
From class java.lang.Object
|
|
From interface java.lang.Comparable
|
PorterDuff.Mode DARKEN
[Sa + Da-Sa * Da,Sc *(1-Da)+ Dc *(1-Sa)+ min(Sc,Dc)]
PorterDuff.Mode LIGHTEN
[Sa + Da-Sa * Da,Sc *(1-Da)+ Dc *(1-Sa)+ max(Sc,Dc)]
PorterDuff.Mode valueOf (String name)
Parameters | |
---|---|
name |
String
|
Returns | |
---|---|
PorterDuff.Mode |