Compositor.CreateBackdropBrush Compositor.CreateBackdropBrush Compositor.CreateBackdropBrush Compositor.CreateBackdropBrush Method

Definition

Creates an instance of CompositionBackdropBrush.

public : CompositionBackdropBrush CreateBackdropBrush()
CompositionBackdropBrush CreateBackdropBrush() const;
public CompositionBackdropBrush CreateBackdropBrush()
Public Function CreateBackdropBrush() As CompositionBackdropBrush

Returns

Additional features and requirements

Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

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

CompositionEffectFactory blurEffectFactory = _compositor.CreateEffectFactory(blurEffect); 

CompositionEffectBrush blurBrush = blurEffectFactory.CreateBrush(); 

// Create a BackdropBrush and bind it to the EffectSourceParameter "source" 
CompositionBackdropBrush backdropBrush = _compositor.CreateBackdropBrush(); 

blurBrush.SetSourceParameter("source", backdropBrush); 
          
          

Remarks

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