GrayscaleEffect Class

Definition

A grayscale effect

C#
public sealed class GrayscaleEffect : CommunityToolkit.WinUI.UI.Media.PipelineEffect
Inheritance
Microsoft.UI.Xaml.DependencyObject
GrayscaleEffect

Remarks

This effect maps to the Win2D Microsoft.Graphics.Canvas.Effects.GrayscaleEffect effect

Constructors

Properties

Brush

Gets the current Microsoft.UI.Composition.CompositionBrush instance, if one is in use.

(Inherited from PipelineEffect)
IsAnimatable

Gets or sets a value indicating whether the effect can be animated.

(Inherited from PipelineEffect)

Methods

AppendToBuilder(PipelineBuilder)

Appends the current effect to the input PipelineBuilder instance.

NotifyCompositionBrushInUse(CompositionBrush)

Notifies that a given Microsoft.UI.Composition.CompositionBrush is now in use.

(Inherited from PipelineEffect)

Applies to

Produit Versions
Windows Community Toolkit 7.0.0