CompositionBlendMode Enumeration
Definition
Namespace: Avalonia.Rendering.Composition
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public enum CompositionBlendMode
Public Enumeration CompositionBlendMode
type CompositionBlendMode
Members
| Clear | 0 | No regions are enabled. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_clr.svg) |
| Src | 1 | Only the source will be present. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src.svg) |
| Dst | 2 | Only the destination will be present. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst.svg) |
| SrcOver | 3 | Source is placed over the destination. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src-over.svg) |
| DstOver | 4 | Destination is placed over the source. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst-over.svg) |
| SrcIn | 5 | The source that overlaps the destination, replaces the destination. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src-in.svg) |
| DstIn | 6 | Destination which overlaps the source, replaces the source. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst-in.svg) |
| SrcOut | 7 | 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) |
| DstOut | 8 | 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) |
| SrcATop | 9 | Source which overlaps the destination, replaces the destination. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src-atop.svg) |
| DstATop | 10 | Destination which overlaps the source replaces the source. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst-atop.svg) |
| Xor | 11 | The non-overlapping regions of source and destination are combined. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_xor.svg) |
| Plus | 12 | Display the sum of the source image and destination image. [Porter Duff Compositing Operators] |
| Modulate | 13 | Multiplies all components (= alpha and color). [Separable Blend Modes] |
| Screen | 14 | Multiplies the complements of the backdrop and source CompositionColorvalues, then complements the result. [Separable Blend Modes] |
| Overlay | 15 | Multiplies or screens the colors, depending on the backdrop CompositionColorvalue. [Separable Blend Modes] |
| Darken | 16 | Selects the darker of the backdrop and source colors. [Separable Blend Modes] |
| Lighten | 17 | Selects the lighter of the backdrop and source colors. [Separable Blend Modes] |
| ColorDodge | 18 | Brightens the backdrop CompositionColorto reflect the source color. [Separable Blend Modes] |
| ColorBurn | 19 | Darkens the backdrop CompositionColorto reflect the source color. [Separable Blend Modes] |
| HardLight | 20 | Multiplies or screens the colors, depending on the source CompositionColorvalue. [Separable Blend Modes] |
| SoftLight | 21 | Darkens or lightens the colors, depending on the source CompositionColorvalue. [Separable Blend Modes] |
| Difference | 22 | Subtracts the darker of the two constituent colors from the lighter color. [Separable Blend Modes] |
| Exclusion | 23 | Produces an effect similar to that of the Difference mode but lower in contrast. [Separable Blend Modes] |
| Multiply | 24 | The source CompositionColoris multiplied by the destination CompositionColorand replaces the destination [Separable Blend Modes] |
| Hue | 25 | Creates a CompositionColorwith the hue of the source CompositionColorand the saturation and luminosity of the backdrop color. [Non-Separable Blend Modes] |
| Saturation | 26 | Creates a CompositionColorwith the saturation of the source CompositionColorand the hue and luminosity of the backdrop color. [Non-Separable Blend Modes] |
| Color | 27 | Creates a CompositionColorwith the hue and saturation of the source CompositionColorand the luminosity of the backdrop color. [Non-Separable Blend Modes] |
| Luminosity | 28 | Creates a CompositionColorwith the luminosity of the source CompositionColorand the hue and saturation of the backdrop color. [Non-Separable Blend Modes] |