Skip to main content

CompositionBlendMode Enumeration

Definition

Namespace: Avalonia.Rendering.Composition
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public enum CompositionBlendMode

Members

Clear0No regions are enabled. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_clr.svg)
Src1Only the source will be present. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src.svg)
Dst2Only the destination will be present. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst.svg)
SrcOver3Source is placed over the destination. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src-over.svg)
DstOver4Destination is placed over the source. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst-over.svg)
SrcIn5The source that overlaps the destination, replaces the destination. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src-in.svg)
DstIn6Destination which overlaps the source, replaces the source. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst-in.svg)
SrcOut7Source is placed, where it falls outside of the destination. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src-out.svg)
DstOut8Destination is placed, where it falls outside of the source. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst-out.svg)
SrcATop9Source which overlaps the destination, replaces the destination. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src-atop.svg)
DstATop10Destination which overlaps the source replaces the source. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst-atop.svg)
Xor11The non-overlapping regions of source and destination are combined. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_xor.svg)
Plus12Display the sum of the source image and destination image. [Porter Duff Compositing Operators]
Modulate13Multiplies all components (= alpha and color). [Separable Blend Modes]
Screen14Multiplies the complements of the backdrop and source CompositionColorvalues, then complements the result. [Separable Blend Modes]
Overlay15Multiplies or screens the colors, depending on the backdrop CompositionColorvalue. [Separable Blend Modes]
Darken16Selects the darker of the backdrop and source colors. [Separable Blend Modes]
Lighten17Selects the lighter of the backdrop and source colors. [Separable Blend Modes]
ColorDodge18Brightens the backdrop CompositionColorto reflect the source color. [Separable Blend Modes]
ColorBurn19Darkens the backdrop CompositionColorto reflect the source color. [Separable Blend Modes]
HardLight20Multiplies or screens the colors, depending on the source CompositionColorvalue. [Separable Blend Modes]
SoftLight21Darkens or lightens the colors, depending on the source CompositionColorvalue. [Separable Blend Modes]
Difference22Subtracts the darker of the two constituent colors from the lighter color. [Separable Blend Modes]
Exclusion23Produces an effect similar to that of the Difference mode but lower in contrast. [Separable Blend Modes]
Multiply24The source CompositionColoris multiplied by the destination CompositionColorand replaces the destination [Separable Blend Modes]
Hue25Creates a CompositionColorwith the hue of the source CompositionColorand the saturation and luminosity of the backdrop color. [Non-Separable Blend Modes]
Saturation26Creates a CompositionColorwith the saturation of the source CompositionColorand the hue and luminosity of the backdrop color. [Non-Separable Blend Modes]
Color27Creates a CompositionColorwith the hue and saturation of the source CompositionColorand the luminosity of the backdrop color. [Non-Separable Blend Modes]
Luminosity28Creates a CompositionColorwith the luminosity of the source CompositionColorand the hue and saturation of the backdrop color. [Non-Separable Blend Modes]

See Also

Reference

Avalonia.Rendering.Composition Namespace