# BlendEffectMode

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

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

```rust
enum BlendEffectMode
```

How a blend effect mixes its foreground into its background (Win2D
`BlendEffectMode`, the modes of Direct2D's blend effect).

The modes with a counterpart among the blend modes of the drawing
contexts are drawn: `Multiply`, `Screen`, `Darken`, `Lighten`,
`ColorBurn`, `ColorDodge`, `LinearDodge` (an addition), `Overlay`,
`SoftLight`, `HardLight`, `Difference`, `Exclusion`, `Hue`, `Saturation`,
`Color` and `Luminosity`. The other modes are drawn from the pixels of the
two sources (docs/porting/winui-materials.md).

`Color` keeps the hue and saturation of the foreground and the
luminosity of the background; `Luminosity` the other way round, as Win2D
documents them.

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

## Members

- [`Multiply`](#variant-multiply)
- [`Screen`](#variant-screen)
- [`Darken`](#variant-darken)
- [`Lighten`](#variant-lighten)
- [`Dissolve`](#variant-dissolve)
- [`ColorBurn`](#variant-colorburn)
- [`LinearBurn`](#variant-linearburn)
- [`DarkerColor`](#variant-darkercolor)
- [`LighterColor`](#variant-lightercolor)
- [`ColorDodge`](#variant-colordodge)
- [`LinearDodge`](#variant-lineardodge)
- [`Overlay`](#variant-overlay)
- [`SoftLight`](#variant-softlight)
- [`HardLight`](#variant-hardlight)
- [`VividLight`](#variant-vividlight)
- [`LinearLight`](#variant-linearlight)
- [`PinLight`](#variant-pinlight)
- [`HardMix`](#variant-hardmix)
- [`Difference`](#variant-difference)
- [`Exclusion`](#variant-exclusion)
- [`Hue`](#variant-hue)
- [`Saturation`](#variant-saturation)
- [`Color`](#variant-color)
- [`Luminosity`](#variant-luminosity)
- [`Subtract`](#variant-subtract)
- [`Division`](#variant-division)

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

### Multiply

```rust
Multiply = 0
```

The default of Win2D.

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

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

### Screen

```rust
Screen = 1
```



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

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

### Darken

```rust
Darken = 2
```



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

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

### Lighten

```rust
Lighten = 3
```



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

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

### Dissolve

```rust
Dissolve = 4
```



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

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

### ColorBurn

```rust
ColorBurn = 5
```



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

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

### LinearBurn

```rust
LinearBurn = 6
```



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

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

### DarkerColor

```rust
DarkerColor = 7
```



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

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

### LighterColor

```rust
LighterColor = 8
```



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

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

### ColorDodge

```rust
ColorDodge = 9
```



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

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

### LinearDodge

```rust
LinearDodge = 10
```



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

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

### Overlay

```rust
Overlay = 11
```



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

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

### SoftLight

```rust
SoftLight = 12
```



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

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

### HardLight

```rust
HardLight = 13
```



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

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

### VividLight

```rust
VividLight = 14
```



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

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

### LinearLight

```rust
LinearLight = 15
```



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

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

### PinLight

```rust
PinLight = 16
```



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

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

### HardMix

```rust
HardMix = 17
```



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

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

### Difference

```rust
Difference = 18
```



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

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

### Exclusion

```rust
Exclusion = 19
```



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

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

### Hue

```rust
Hue = 20
```



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

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

### Saturation

```rust
Saturation = 21
```



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

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

### Color

```rust
Color = 22
```



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

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

### Luminosity

```rust
Luminosity = 23
```



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

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

### Subtract

```rust
Subtract = 24
```



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

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

### Division

```rust
Division = 25
```



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

## 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`
- `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/).
