Compartilhar via


Compositor.CreateBackdropBrush Método

Definição

Cria uma instância de CompositionBackdropBrush.

public:
 virtual CompositionBackdropBrush ^ CreateBackdropBrush() = CreateBackdropBrush;
CompositionBackdropBrush CreateBackdropBrush();
public CompositionBackdropBrush CreateBackdropBrush();
function createBackdropBrush()
Public Function CreateBackdropBrush () As CompositionBackdropBrush

Retornos

Retorna o objeto CompositionBackdropBrush criado.

Exemplos

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

Comentários

Consulte a seção de comentários de CompositionEffectBrush para obter informações sobre como criar e usar efeitos.

Aplica-se a