Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.31 KB

compositioneffectsourceparameter.md

File metadata and controls

41 lines (26 loc) · 1.31 KB
-api-id -api-type
T:Windows.UI.Composition.CompositionEffectSourceParameter
winrt class

Windows.UI.Composition.CompositionEffectSourceParameter

-description

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.

-remarks

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

-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"); 
         

-see-also

Composition Brushes Overview, Composition Effects Overview