# CompositionBlendMode

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/rendering/composition/enum-compositionblendmode/

**enum** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
enum CompositionBlendMode
```



[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L7)

## Members

- [`Clear`](#variant-clear)
- [`Src`](#variant-src)
- [`Dst`](#variant-dst)
- [`SrcOver`](#variant-srcover)
- [`DstOver`](#variant-dstover)
- [`SrcIn`](#variant-srcin)
- [`DstIn`](#variant-dstin)
- [`SrcOut`](#variant-srcout)
- [`DstOut`](#variant-dstout)
- [`SrcATop`](#variant-srcatop)
- [`DstATop`](#variant-dstatop)
- [`Xor`](#variant-xor)
- [`Plus`](#variant-plus)
- [`Modulate`](#variant-modulate)
- [`Screen`](#variant-screen)
- [`Overlay`](#variant-overlay)
- [`Darken`](#variant-darken)
- [`Lighten`](#variant-lighten)
- [`ColorDodge`](#variant-colordodge)
- [`ColorBurn`](#variant-colorburn)
- [`HardLight`](#variant-hardlight)
- [`SoftLight`](#variant-softlight)
- [`Difference`](#variant-difference)
- [`Exclusion`](#variant-exclusion)
- [`Multiply`](#variant-multiply)
- [`Hue`](#variant-hue)
- [`Saturation`](#variant-saturation)
- [`Color`](#variant-color)
- [`Luminosity`](#variant-luminosity)

<a id="variant-clear"></a>

### Clear

```rust
Clear
```

No regions are enabled.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L10)

<a id="variant-src"></a>

### Src

```rust
Src
```

Only the source will be present.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L12)

<a id="variant-dst"></a>

### Dst

```rust
Dst
```

Only the destination will be present.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L14)

<a id="variant-srcover"></a>

### SrcOver

```rust
SrcOver
```

Source is placed over the destination.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L16)

<a id="variant-dstover"></a>

### DstOver

```rust
DstOver
```

Destination is placed over the source.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L18)

<a id="variant-srcin"></a>

### SrcIn

```rust
SrcIn
```

The source that overlaps the destination, replaces the destination.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L20)

<a id="variant-dstin"></a>

### DstIn

```rust
DstIn
```

Destination which overlaps the source, replaces the source.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L22)

<a id="variant-srcout"></a>

### SrcOut

```rust
SrcOut
```

Source is placed, where it falls outside of the destination.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L24)

<a id="variant-dstout"></a>

### DstOut

```rust
DstOut
```

Destination is placed, where it falls outside of the source.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L26)

<a id="variant-srcatop"></a>

### SrcATop

```rust
SrcATop
```

Source which overlaps the destination, replaces the destination.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L28)

<a id="variant-dstatop"></a>

### DstATop

```rust
DstATop
```

Destination which overlaps the source replaces the source.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L30)

<a id="variant-xor"></a>

### Xor

```rust
Xor
```

The non-overlapping regions of source and destination are combined.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L32)

<a id="variant-plus"></a>

### Plus

```rust
Plus
```

Display the sum of the source image and destination image.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L34)

<a id="variant-modulate"></a>

### Modulate

```rust
Modulate
```

Multiplies all components (= alpha and color).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L36)

<a id="variant-screen"></a>

### Screen

```rust
Screen
```

Multiplies the complements of the backdrop and source color values,
then complements the result.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L39)

<a id="variant-overlay"></a>

### Overlay

```rust
Overlay
```

Multiplies or screens the colors, depending on the backdrop color
value.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L42)

<a id="variant-darken"></a>

### Darken

```rust
Darken
```

Selects the darker of the backdrop and source colors.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L44)

<a id="variant-lighten"></a>

### Lighten

```rust
Lighten
```

Selects the lighter of the backdrop and source colors.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L46)

<a id="variant-colordodge"></a>

### ColorDodge

```rust
ColorDodge
```

Brightens the backdrop color to reflect the source color.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L48)

<a id="variant-colorburn"></a>

### ColorBurn

```rust
ColorBurn
```

Darkens the backdrop color to reflect the source color.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L50)

<a id="variant-hardlight"></a>

### HardLight

```rust
HardLight
```

Multiplies or screens the colors, depending on the source color
value.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L53)

<a id="variant-softlight"></a>

### SoftLight

```rust
SoftLight
```

Darkens or lightens the colors, depending on the source color value.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L55)

<a id="variant-difference"></a>

### Difference

```rust
Difference
```

Subtracts the darker of the two constituent colors from the lighter
color.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L58)

<a id="variant-exclusion"></a>

### Exclusion

```rust
Exclusion
```

Produces an effect similar to that of the Difference mode but lower
in contrast.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L61)

<a id="variant-multiply"></a>

### Multiply

```rust
Multiply
```

The source color is multiplied by the destination color and replaces
the destination.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L64)

<a id="variant-hue"></a>

### Hue

```rust
Hue
```

Creates a color with the hue of the source color and the saturation
and luminosity of the backdrop color.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L67)

<a id="variant-saturation"></a>

### Saturation

```rust
Saturation
```

Creates a color with the saturation of the source color and the hue
and luminosity of the backdrop color.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L70)

<a id="variant-color"></a>

### Color

```rust
Color
```

Creates a color with the hue and saturation of the source color and
the luminosity of the backdrop color.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L73)

<a id="variant-luminosity"></a>

### Luminosity

```rust
Luminosity
```

Creates a color with the luminosity of the source color and the hue
and saturation of the backdrop color.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/enums.rs#L76)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ResourceKeyObject`](/docs/0.5.0/api/ferroui-base/controls/trait-resourcekeyobject/)
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `BatchValue`
- `Clone`
- `Copy`
- `Debug`
- `Default`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
