CompositionEffectSourceParameter CompositionEffectSourceParameter CompositionEffectSourceParameter CompositionEffectSourceParameter Class

Definition

Used to declare an arbitrary name (a String) to be associated with a CompositionBrush (the “effect source”). The association of the given name and the effect source occurs when the SetSourceParameter method of a CompositionEffectBrush is called.

public : sealed class CompositionEffectSourceParameter : IGraphicsEffectSource
struct winrt::Windows::UI::Composition::CompositionEffectSourceParameter : IGraphicsEffectSource
public sealed class CompositionEffectSourceParameter : IGraphicsEffectSource
Public NotInheritable Class CompositionEffectSourceParameter Implements IGraphicsEffectSource
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Examples


// Create an effect description 
GaussianBlurEffect blurEffect = new GaussianBlurEffect() 
{ 
    Name = "Blur", 
    BlurAmount = 1.0f, 
    BorderMode = EffectBorderMode.Hard, 
    Optimization = EffectOptimization.Balanced 
}; 

blurEffect.Source = new CompositionEffectSourceParameter("source"); 
         

Remarks

See the remarks section of CompositionEffectBrush for information on creating and using effects.

Constructors

CompositionEffectSourceParameter(String) CompositionEffectSourceParameter(String) CompositionEffectSourceParameter(String) CompositionEffectSourceParameter(String)

Creates an instance of CompositionEffectSourceParameter.

Properties

Name Name Name Name

The name associated with the effect source.

See also