Blend mode
Stay organized with collections
Save and categorize content based on your preferences.
The blendMode
attribute can be applied to PartText
, PartImage
,
PartAnimatedImage
and PartDraw
elements to configure how two
overlapping Part*
objects are rendered.
Introduced in Wear OS 5.1.
Blend mode |
Description |
CLEAR |
Destination pixels covered by the source are cleared to 0.
|
COLOR |
Replaces hue and saturation of destination with hue and saturation of source, leaving luminosity unchanged.
|
COLOR_BURN |
Makes destination darker to reflect source.
|
COLOR_DODGE |
Makes destination brighter to reflect source.
|
DARKEN |
Retains the smallest component of the source and destination pixels.
|
DIFFERENCE |
Subtracts darker from lighter with higher contrast.
|
DST |
The source pixels are discarded, leaving the destination intact.
|
DST_ATOP |
Discards the destination pixels that are not covered by source pixels.
|
DST_IN |
Keeps the destination pixels that cover source pixels, discards the remaining source and destination pixels.
|
DST_OUT |
Keeps the destination pixels that are not covered by source pixels.
|
DST_OVER |
The source pixels are drawn behind the destination pixels.
|
EXCLUSION |
Subtracts darker from lighter with lower contrast.
|
HARD_LIGHT |
Makes destination lighter or darker, depending on source.
|
HUE |
Replaces hue of destination with hue of source, leaving saturation and luminosity unchanged.
|
LIGHTEN |
Retains the largest component of the source and destination pixels.
|
LUMINOSITY |
Replaces luminosity of destination with luminosity of source, leaving hue and saturation unchanged.
|
MODULATE |
Multiplies the source and destination pixels.
|
MULTIPLY |
Multiplies the source and destination pixels.
|
OVERLAY |
Multiplies or screens the source and destination depending on the destination color.
|
PLUS |
Adds the source pixels to the destination pixels and saturates the result.
|
SATURATION |
Replaces saturation of destination with saturation of source, leaving hue and luminosity unchanged.
|
SCREEN |
Adds the source and destination pixels, then subtracts the source pixels multiplied by the destination.
|
SOFT_LIGHT |
Makes destination lighter or darker, depending on source.
|
SRC |
The source pixels replace the destination pixels.
|
SRC_ATOP |
Discards the source pixels that do not cover destination pixels.
|
SRC_IN |
Keeps the source pixels that cover the destination pixels, discards the remaining source and destination pixels.
|
SRC_OUT |
Keeps the source pixels that do not cover destination pixels.
|
SRC_OVER |
The source pixels are drawn over the destination pixels.
|
XOR |
Discards the source and destination pixels where source pixels cover destination pixels.
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-03-04 UTC.
[null,null,["Last updated 2025-03-04 UTC."],[],[],null,["# Blend mode\n\nThe `blendMode` attribute can be applied to [`PartText`](/reference/wear-os/wff/group/part/text/part-text), [`PartImage`](/reference/wear-os/wff/group/part/image/part-image),\n[`PartAnimatedImage`](/reference/wear-os/wff/group/part/animated-image/part-animated-image) and [`PartDraw`](/reference/wear-os/wff/group/part/draw/part-draw) elements to configure how two\noverlapping `Part*` objects are rendered.\n\nIntroduced in Wear OS 5.1.\n\n| Blend mode | Description |\n|------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------|\n| [CLEAR](/reference/android/graphics/BlendMode#CLEAR) | Destination pixels covered by the source are cleared to 0. |\n| [COLOR](/reference/android/graphics/BlendMode#COLOR) | Replaces hue and saturation of destination with hue and saturation of source, leaving luminosity unchanged. |\n| [COLOR_BURN](/reference/android/graphics/BlendMode#COLOR_BURN) | Makes destination darker to reflect source. |\n| [COLOR_DODGE](/reference/android/graphics/BlendMode#COLOR_DODGE) | Makes destination brighter to reflect source. |\n| [DARKEN](/reference/android/graphics/BlendMode#DARKEN) | Retains the smallest component of the source and destination pixels. |\n| [DIFFERENCE](/reference/android/graphics/BlendMode#DIFFERENCE) | Subtracts darker from lighter with higher contrast. |\n| [DST](/reference/android/graphics/BlendMode#DST) | The source pixels are discarded, leaving the destination intact. |\n| [DST_ATOP](/reference/android/graphics/BlendMode#DST_ATOP) | Discards the destination pixels that are not covered by source pixels. |\n| [DST_IN](/reference/android/graphics/BlendMode#DST_IN) | Keeps the destination pixels that cover source pixels, discards the remaining source and destination pixels. |\n| [DST_OUT](/reference/android/graphics/BlendMode#DST_OUT) | Keeps the destination pixels that are not covered by source pixels. |\n| [DST_OVER](/reference/android/graphics/BlendMode#DST_OVER) | The source pixels are drawn behind the destination pixels. |\n| [EXCLUSION](/reference/android/graphics/BlendMode#EXCLUSION) | Subtracts darker from lighter with lower contrast. |\n| [HARD_LIGHT](/reference/android/graphics/BlendMode#HARD_LIGHT) | Makes destination lighter or darker, depending on source. |\n| [HUE](/reference/android/graphics/BlendMode#HUE) | Replaces hue of destination with hue of source, leaving saturation and luminosity unchanged. |\n| [LIGHTEN](/reference/android/graphics/BlendMode#LIGHTEN) | Retains the largest component of the source and destination pixels. |\n| [LUMINOSITY](/reference/android/graphics/BlendMode#LUMINOSITY) | Replaces luminosity of destination with luminosity of source, leaving hue and saturation unchanged. |\n| [MODULATE](/reference/android/graphics/BlendMode#MODULATE) | Multiplies the source and destination pixels. |\n| [MULTIPLY](/reference/android/graphics/BlendMode#MULTIPLY) | Multiplies the source and destination pixels. |\n| [OVERLAY](/reference/android/graphics/BlendMode#OVERLAY) | Multiplies or screens the source and destination depending on the destination color. |\n| [PLUS](/reference/android/graphics/BlendMode#PLUS) | Adds the source pixels to the destination pixels and saturates the result. |\n| [SATURATION](/reference/android/graphics/BlendMode#SATURATION) | Replaces saturation of destination with saturation of source, leaving hue and luminosity unchanged. |\n| [SCREEN](/reference/android/graphics/BlendMode#SCREEN) | Adds the source and destination pixels, then subtracts the source pixels multiplied by the destination. |\n| [SOFT_LIGHT](/reference/android/graphics/BlendMode#SOFT_LIGHT) | Makes destination lighter or darker, depending on source. |\n| [SRC](/reference/android/graphics/BlendMode#SRC) | The source pixels replace the destination pixels. |\n| [SRC_ATOP](/reference/android/graphics/BlendMode#SRC_ATOP) | Discards the source pixels that do not cover destination pixels. |\n| [SRC_IN](/reference/android/graphics/BlendMode#SRC_IN) | Keeps the source pixels that cover the destination pixels, discards the remaining source and destination pixels. |\n| [SRC_OUT](/reference/android/graphics/BlendMode#SRC_OUT) | Keeps the source pixels that do not cover destination pixels. |\n| [SRC_OVER](/reference/android/graphics/BlendMode#SRC_OVER) | The source pixels are drawn over the destination pixels. |\n| [XOR](/reference/android/graphics/BlendMode#XOR) | Discards the source and destination pixels where source pixels cover destination pixels. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e"]]