# GraphicsEffect

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

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

```rust
enum GraphicsEffect
```

An effect description (WinUI `IGraphicsEffect`): one of the Win2D
effects of this module.

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

## Members

- [`GaussianBlur`](#variant-gaussianblur)
- [`Opacity`](#variant-opacity)
- [`CrossFade`](#variant-crossfade)
- [`Composite`](#variant-composite)
- [`ColorSource`](#variant-colorsource)
- [`Saturation`](#variant-saturation)
- [`Blend`](#variant-blend)
- [`ColorMatrix`](#variant-colormatrix)
- [`Tint`](#variant-tint)
- [`Invert`](#variant-invert)
- [`Grayscale`](#variant-grayscale)
- [`LuminanceToAlpha`](#variant-luminancetoalpha)
- [`ArithmeticComposite`](#variant-arithmeticcomposite)
- [`Border`](#variant-border)
- [`SceneLighting`](#variant-scenelighting)
- [`Shadow`](#variant-shadow)
- [`Sepia`](#variant-sepia)
- [`LinearTransfer`](#variant-lineartransfer)
- [`ConvolveMatrix`](#variant-convolvematrix)
- [`name`](#function-name)
- [`type_name`](#function-type_name)

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

### GaussianBlur

```rust
GaussianBlur(GaussianBlurEffect)
```



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

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

### Opacity

```rust
Opacity(OpacityEffect)
```



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

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

### CrossFade

```rust
CrossFade(CrossFadeEffect)
```



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

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

### Composite

```rust
Composite(CompositeEffect)
```



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

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

### ColorSource

```rust
ColorSource(ColorSourceEffect)
```



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

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

### Saturation

```rust
Saturation(SaturationEffect)
```



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

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

### Blend

```rust
Blend(BlendEffect)
```



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

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

### ColorMatrix

```rust
ColorMatrix(ColorMatrixEffect)
```



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

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

### Tint

```rust
Tint(TintEffect)
```



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

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

### Invert

```rust
Invert(InvertEffect)
```



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

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

### Grayscale

```rust
Grayscale(GrayscaleEffect)
```



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

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

### LuminanceToAlpha

```rust
LuminanceToAlpha(LuminanceToAlphaEffect)
```



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

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

### ArithmeticComposite

```rust
ArithmeticComposite(ArithmeticCompositeEffect)
```



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

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

### Border

```rust
Border(BorderEffect)
```



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

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

### SceneLighting

```rust
SceneLighting(SceneLightingEffect)
```



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

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

### Shadow

```rust
Shadow(ShadowEffect)
```



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

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

### Sepia

```rust
Sepia(SepiaEffect)
```



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

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

### LinearTransfer

```rust
LinearTransfer(LinearTransferEffect)
```



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

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

### ConvolveMatrix

```rust
ConvolveMatrix(ConvolveMatrixEffect)
```



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

<a id="function-name"></a>

### name

```rust
fn name(self: &Self) -> &str
```

The name of the effect (`IGraphicsEffect.Name`): the first part of
the animatable property names of the effect (`Blur.BlurAmount`).

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

<a id="function-type_name"></a>

### type_name

```rust
fn type_name(self: &Self) -> &'static str
```

The name of the Win2D class of the effect, for messages.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`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`
- `From<GraphicsEffect>`
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `From<GaussianBlurEffect>`
- `From<OpacityEffect>`
- `From<CrossFadeEffect>`
- `From<CompositeEffect>`
- `From<ColorSourceEffect>`
- `From<SaturationEffect>`
- `From<BlendEffect>`
- `From<ColorMatrixEffect>`
- `From<TintEffect>`
- `From<InvertEffect>`
- `From<GrayscaleEffect>`
- `From<LuminanceToAlphaEffect>`
- `From<ArithmeticCompositeEffect>`
- `From<AlphaMaskEffect>`
- `From<BorderEffect>`
- `From<ShadowEffect>`
- `From<SceneLightingEffect>`
- `From<SepiaEffect>`
- `From<LinearTransferEffect>`
- `From<ConvolveMatrixEffect>`

## Availability

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