Most visited

Recently visited

Added in API level 1

PorterDuff.Mode

public static final enum PorterDuff.Mode
extends Enum<PorterDuff.Mode>

java.lang.Object
   ↳ java.lang.Enum<android.graphics.PorterDuff.Mode>
     ↳ android.graphics.PorterDuff.Mode


Summary

Enum values

PorterDuff.Mode  ADD

Saturate(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

Enum values

ADD

Added in API level 1
PorterDuff.Mode ADD

Saturate(S + D)

CLEAR

Added in API level 1
PorterDuff.Mode CLEAR

[0, 0]

DARKEN

Added in API level 1
PorterDuff.Mode DARKEN

[Sa + Da - Sa*Da, Sc*(1 - Da) + Dc*(1 - Sa) + min(Sc, Dc)]

DST

Added in API level 1
PorterDuff.Mode DST

[Da, Dc]

DST_ATOP

Added in API level 1
PorterDuff.Mode DST_ATOP

[Sa, Sa * Dc + Sc * (1 - Da)]

DST_IN

Added in API level 1
PorterDuff.Mode DST_IN

[Sa * Da, Sa * Dc]

DST_OUT

Added in API level 1
PorterDuff.Mode DST_OUT

[Da * (1 - Sa), Dc * (1 - Sa)]

DST_OVER

Added in API level 1
PorterDuff.Mode DST_OVER

[Sa + (1 - Sa)*Da, Rc = Dc + (1 - Da)*Sc]

LIGHTEN

Added in API level 1
PorterDuff.Mode LIGHTEN

[Sa + Da - Sa*Da, Sc*(1 - Da) + Dc*(1 - Sa) + max(Sc, Dc)]

MULTIPLY

Added in API level 1
PorterDuff.Mode MULTIPLY

[Sa * Da, Sc * Dc]

OVERLAY

Added in API level 1
PorterDuff.Mode OVERLAY

SCREEN

Added in API level 1
PorterDuff.Mode SCREEN

[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]

SRC

Added in API level 1
PorterDuff.Mode SRC

[Sa, Sc]

SRC_ATOP

Added in API level 1
PorterDuff.Mode SRC_ATOP

[Da, Sc * Da + (1 - Sa) * Dc]

SRC_IN

Added in API level 1
PorterDuff.Mode SRC_IN

[Sa * Da, Sc * Da]

SRC_OUT

Added in API level 1
PorterDuff.Mode SRC_OUT

[Sa * (1 - Da), Sc * (1 - Da)]

SRC_OVER

Added in API level 1
PorterDuff.Mode SRC_OVER

[Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

XOR

Added in API level 1
PorterDuff.Mode XOR

[Sa + Da - 2 * Sa * Da, Sc * (1 - Da) + (1 - Sa) * Dc]

Public methods

valueOf

Added in API level 1
PorterDuff.Mode valueOf (String name)

Parameters
name String
Returns
PorterDuff.Mode

values

Added in API level 1
Mode[] values ()

Returns
Mode[]

Hooray!