BlendModeCompat

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

Entries

Link copied to clipboard

{@usesMathJax} Destination pixels covered by the source are cleared to 0.

Link copied to clipboard

{@usesMathJax} The source pixels replace the destination pixels.

Link copied to clipboard

{@usesMathJax} The source pixels are discarded, leaving the destination intact.

Link copied to clipboard

{@usesMathJax} The source pixels are drawn over the destination pixels.

Link copied to clipboard

{@usesMathJax} The source pixels are drawn behind the destination pixels.

Link copied to clipboard

{@usesMathJax} Keeps the source pixels that cover the destination pixels, discards the remaining source and destination pixels.

Link copied to clipboard

{@usesMathJax} Keeps the destination pixels that cover source pixels, discards the remaining source and destination pixels.

Link copied to clipboard

{@usesMathJax} Keeps the source pixels that do not cover destination pixels. Discards source pixels that cover destination pixels. Discards all destination pixels.

Link copied to clipboard

{@usesMathJax} Keeps the destination pixels that are not covered by source pixels. Discards destination pixels that are covered by source pixels. Discards all source pixels.

Link copied to clipboard

{@usesMathJax} Discards the source pixels that do not cover destination pixels. Draws remaining source pixels over destination pixels.

Link copied to clipboard

{@usesMathJax} Discards the destination pixels that are not covered by source pixels. Draws remaining destination pixels over source pixels.

Link copied to clipboard

{@usesMathJax} Discards the source and destination pixels where source pixels cover destination pixels. Draws remaining source pixels.

Link copied to clipboard

{@usesMathJax} Adds the source pixels to the destination pixels and saturates the result.

Link copied to clipboard

{@usesMathJax} Multiplies the source and destination pixels.

Link copied to clipboard

{@usesMathJax} Adds the source and destination pixels, then subtracts the source pixels multiplied by the destination.

Link copied to clipboard

{@usesMathJax} Multiplies or screens the source and destination depending on the destination color.

Link copied to clipboard

{@usesMathJax} Retains the smallest component of the source and destination pixels.

Link copied to clipboard

{@usesMathJax} Retains the largest component of the source and destination pixel.

Link copied to clipboard

{@usesMathJax} Makes destination brighter to reflect source. \(\alpha_{out} = \alpha_{src} + \alpha_{dst} - \alpha_{src} * \alpha_{dst}\)

Link copied to clipboard

{@usesMathJax} Makes destination darker to reflect source.

Link copied to clipboard

{@usesMathJax} Makes destination lighter or darker, depending on source.

Link copied to clipboard

{@usesMathJax} Makes destination lighter or darker, depending on source.

Link copied to clipboard

{@usesMathJax} Subtracts darker from lighter with higher contrast.

Link copied to clipboard

{@usesMathJax} Subtracts darker from lighter with lower contrast.

Link copied to clipboard

{@usesMathJax} Multiplies the source and destination pixels.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Functions

Link copied to clipboard
open fun valueOf(name: String): BlendModeCompat

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.