Skip to main content

CompositionBlendMode Enum

Definition​

Assembly:Avalonia.Base
Package:Avalonia
Source:Enums.cs
public enum CompositionBlendMode

Inheritance: Enum -> CompositionBlendMode

Fields​

NameDescription
ClearNo regions are enabled. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_clr.svg)
ColorCreates a CompositionColorwith the hue and saturation of the source CompositionColorand the luminosity of the backdrop color. [Non-Separable Blend Modes]
ColorBurnDarkens the backdrop CompositionColorto reflect the source color. [Separable Blend Modes]
ColorDodgeBrightens the backdrop CompositionColorto reflect the source color. [Separable Blend Modes]
DarkenSelects the darker of the backdrop and source colors. [Separable Blend Modes]
DifferenceSubtracts the darker of the two constituent colors from the lighter color. [Separable Blend Modes]
DstOnly the destination will be present. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst.svg)
DstATopDestination which overlaps the source replaces the source. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst-atop.svg)
DstInDestination which overlaps the source, replaces the source. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst-in.svg)
DstOutDestination is placed, where it falls outside of the source. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst-out.svg)
DstOverDestination is placed over the source. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst-over.svg)
ExclusionProduces an effect similar to that of the Difference mode but lower in contrast. [Separable Blend Modes]
HardLightMultiplies or screens the colors, depending on the source CompositionColorvalue. [Separable Blend Modes]
HueCreates a CompositionColorwith the hue of the source CompositionColorand the saturation and luminosity of the backdrop color. [Non-Separable Blend Modes]
LightenSelects the lighter of the backdrop and source colors. [Separable Blend Modes]
LuminosityCreates a CompositionColorwith the luminosity of the source CompositionColorand the hue and saturation of the backdrop color. [Non-Separable Blend Modes]
ModulateMultiplies all components (= alpha and color). [Separable Blend Modes]
MultiplyThe source CompositionColoris multiplied by the destination CompositionColorand replaces the destination [Separable Blend Modes]
OverlayMultiplies or screens the colors, depending on the backdrop CompositionColorvalue. [Separable Blend Modes]
PlusDisplay the sum of the source image and destination image. [Porter Duff Compositing Operators]
SaturationCreates a CompositionColorwith the saturation of the source CompositionColorand the hue and luminosity of the backdrop color. [Non-Separable Blend Modes]
ScreenMultiplies the complements of the backdrop and source CompositionColorvalues, then complements the result. [Separable Blend Modes]
SoftLightDarkens or lightens the colors, depending on the source CompositionColorvalue. [Separable Blend Modes]
SrcOnly the source will be present. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src.svg)
SrcATopSource which overlaps the destination, replaces the destination. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src-atop.svg)
SrcInThe source that overlaps the destination, replaces the destination. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src-in.svg)
SrcOutSource is placed, where it falls outside of the destination. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src-out.svg)
SrcOverSource is placed over the destination. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src-over.svg)
XorThe non-overlapping regions of source and destination are combined. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_xor.svg)

Clear Field​

No regions are enabled. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_clr.svg)

public Avalonia.Rendering.Composition.CompositionBlendMode Clear

Color Field​

Creates a CompositionColorwith the hue and saturation of the source CompositionColorand the luminosity of the backdrop color. [Non-Separable Blend Modes]

public Avalonia.Rendering.Composition.CompositionBlendMode Color

ColorBurn Field​

Darkens the backdrop CompositionColorto reflect the source color. [Separable Blend Modes]

public Avalonia.Rendering.Composition.CompositionBlendMode ColorBurn

ColorDodge Field​

Brightens the backdrop CompositionColorto reflect the source color. [Separable Blend Modes]

public Avalonia.Rendering.Composition.CompositionBlendMode ColorDodge

Darken Field​

Selects the darker of the backdrop and source colors. [Separable Blend Modes]

public Avalonia.Rendering.Composition.CompositionBlendMode Darken

Difference Field​

Subtracts the darker of the two constituent colors from the lighter color. [Separable Blend Modes]

public Avalonia.Rendering.Composition.CompositionBlendMode Difference

Dst Field​

Only the destination will be present. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst.svg)

public Avalonia.Rendering.Composition.CompositionBlendMode Dst

DstATop Field​

Destination which overlaps the source replaces the source. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst-atop.svg)

public Avalonia.Rendering.Composition.CompositionBlendMode DstATop

DstIn Field​

Destination which overlaps the source, replaces the source. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst-in.svg)

public Avalonia.Rendering.Composition.CompositionBlendMode DstIn

DstOut Field​

Destination is placed, where it falls outside of the source. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst-out.svg)

public Avalonia.Rendering.Composition.CompositionBlendMode DstOut

DstOver Field​

Destination is placed over the source. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst-over.svg)

public Avalonia.Rendering.Composition.CompositionBlendMode DstOver

Exclusion Field​

Produces an effect similar to that of the Difference mode but lower in contrast. [Separable Blend Modes]

public Avalonia.Rendering.Composition.CompositionBlendMode Exclusion

HardLight Field​

Multiplies or screens the colors, depending on the source CompositionColorvalue. [Separable Blend Modes]

public Avalonia.Rendering.Composition.CompositionBlendMode HardLight

Hue Field​

Creates a CompositionColorwith the hue of the source CompositionColorand the saturation and luminosity of the backdrop color. [Non-Separable Blend Modes]

public Avalonia.Rendering.Composition.CompositionBlendMode Hue

Lighten Field​

Selects the lighter of the backdrop and source colors. [Separable Blend Modes]

public Avalonia.Rendering.Composition.CompositionBlendMode Lighten

Luminosity Field​

Creates a CompositionColorwith the luminosity of the source CompositionColorand the hue and saturation of the backdrop color. [Non-Separable Blend Modes]

public Avalonia.Rendering.Composition.CompositionBlendMode Luminosity

Modulate Field​

Multiplies all components (= alpha and color). [Separable Blend Modes]

public Avalonia.Rendering.Composition.CompositionBlendMode Modulate

Multiply Field​

The source CompositionColoris multiplied by the destination CompositionColorand replaces the destination [Separable Blend Modes]

public Avalonia.Rendering.Composition.CompositionBlendMode Multiply

Overlay Field​

Multiplies or screens the colors, depending on the backdrop CompositionColorvalue. [Separable Blend Modes]

public Avalonia.Rendering.Composition.CompositionBlendMode Overlay

Plus Field​

Display the sum of the source image and destination image. [Porter Duff Compositing Operators]

public Avalonia.Rendering.Composition.CompositionBlendMode Plus

Saturation Field​

Creates a CompositionColorwith the saturation of the source CompositionColorand the hue and luminosity of the backdrop color. [Non-Separable Blend Modes]

public Avalonia.Rendering.Composition.CompositionBlendMode Saturation

Screen Field​

Multiplies the complements of the backdrop and source CompositionColorvalues, then complements the result. [Separable Blend Modes]

public Avalonia.Rendering.Composition.CompositionBlendMode Screen

SoftLight Field​

Darkens or lightens the colors, depending on the source CompositionColorvalue. [Separable Blend Modes]

public Avalonia.Rendering.Composition.CompositionBlendMode SoftLight

Src Field​

Only the source will be present. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src.svg)

public Avalonia.Rendering.Composition.CompositionBlendMode Src

SrcATop Field​

Source which overlaps the destination, replaces the destination. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src-atop.svg)

public Avalonia.Rendering.Composition.CompositionBlendMode SrcATop

SrcIn Field​

The source that overlaps the destination, replaces the destination. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src-in.svg)

public Avalonia.Rendering.Composition.CompositionBlendMode SrcIn

SrcOut Field​

Source is placed, where it falls outside of the destination. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src-out.svg)

public Avalonia.Rendering.Composition.CompositionBlendMode SrcOut

SrcOver Field​

Source is placed over the destination. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src-over.svg)

public Avalonia.Rendering.Composition.CompositionBlendMode SrcOver

Xor Field​

The non-overlapping regions of source and destination are combined. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_xor.svg)

public Avalonia.Rendering.Composition.CompositionBlendMode Xor