BlendModeCompat

public final enum BlendModeCompat
extends Enum<BlendModeCompat>

java.lang.Object
   ↳ java.lang.Enum<androidx.core.graphics.BlendModeCompat>
     ↳ androidx.core.graphics.BlendModeCompat


Compat version of BlendMode, usages of BlendModeCompat will map to PorterDuff.Mode wherever possible

Summary

Enum values

BlendModeCompat  CLEAR

Destination pixels covered by the source are cleared to 0. 

BlendModeCompat  COLOR

Replaces hue and saturation of destination with hue and saturation of source, leaving luminosity unchanged. 

BlendModeCompat  COLOR_BURN

Makes destination darker to reflect source. 

BlendModeCompat  COLOR_DODGE

Makes destination brighter to reflect source. 

BlendModeCompat  DARKEN

Retains the smallest component of the source and destination pixels. 

BlendModeCompat  DIFFERENCE

Subtracts darker from lighter with higher contrast. 

BlendModeCompat  DST

The source pixels are discarded, leaving the destination intact. 

BlendModeCompat  DST_ATOP

Discards the destination pixels that are not covered by source pixels. 

BlendModeCompat  DST_IN

Keeps the destination pixels that cover source pixels, discards the remaining source and destination pixels. 

BlendModeCompat  DST_OUT

Keeps the destination pixels that are not covered by source pixels. 

BlendModeCompat  DST_OVER

The source pixels are drawn behind the destination pixels. 

BlendModeCompat  EXCLUSION

Subtracts darker from lighter with lower contrast. 

BlendModeCompat  HARD_LIGHT

Makes destination lighter or darker, depending on source. 

BlendModeCompat  HUE

Replaces hue of destination with hue of source, leaving saturation and luminosity unchanged. 

BlendModeCompat  LIGHTEN

Retains the largest component of the source and destination pixel. 

BlendModeCompat  LUMINOSITY

Replaces luminosity of destination with luminosity of source, leaving hue and saturation unchanged. 

BlendModeCompat  MODULATE

Multiplies the source and destination pixels. 

BlendModeCompat  MULTIPLY

Multiplies the source and destination pixels. 

BlendModeCompat  OVERLAY

Multiplies or screens the source and destination depending on the destination color. 

BlendModeCompat  PLUS

Adds the source pixels to the destination pixels and saturates the result. 

BlendModeCompat  SATURATION

Replaces saturation of destination saturation hue of source, leaving hue and luminosity unchanged. 

BlendModeCompat  SCREEN

Adds the source and destination pixels, then subtracts the source pixels multiplied by the destination. 

BlendModeCompat  SOFT_LIGHT

Makes destination lighter or darker, depending on source. 

BlendModeCompat  SRC

The source pixels replace the destination pixels. 

BlendModeCompat  SRC_ATOP

Discards the source pixels that do not cover destination pixels. 

BlendModeCompat  SRC_IN

Keeps the source pixels that cover the destination pixels, discards the remaining source and destination pixels. 

BlendModeCompat  SRC_OUT

Keeps the source pixels that do not cover destination pixels. 

BlendModeCompat  SRC_OVER

The source pixels are drawn over the destination pixels. 

BlendModeCompat  XOR

Discards the source and destination pixels where source pixels cover destination pixels. 

Public methods

static BlendModeCompat valueOf(String name)
static final BlendModeCompat[] values()

Inherited methods