Partager via


CompositionEffectSourceParameter Classe

Définition

Utilisé pour déclarer un nom arbitraire (chaîne) à associer à un Objet CompositionBrush (la « source de l’effet »). L’association du nom donné et de la source d’effet se produit lorsque la méthode SetSourceParameter d’un Objet CompositionEffectBrush est appelée.

public ref class CompositionEffectSourceParameter sealed
public ref class CompositionEffectSourceParameter sealed : IGraphicsEffectSource
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Composition.ICompositionEffectSourceParameterFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CompositionEffectSourceParameter final
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Composition.ICompositionEffectSourceParameterFactory, 131072, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 131072)]
class CompositionEffectSourceParameter final
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Composition.ICompositionEffectSourceParameterFactory, 131072, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 131072)]
class CompositionEffectSourceParameter final : IGraphicsEffectSource
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Composition.ICompositionEffectSourceParameterFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CompositionEffectSourceParameter
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Composition.ICompositionEffectSourceParameterFactory), 131072, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 131072)]
public sealed class CompositionEffectSourceParameter
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Composition.ICompositionEffectSourceParameterFactory), 131072, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 131072)]
public sealed class CompositionEffectSourceParameter : IGraphicsEffectSource
Public NotInheritable Class CompositionEffectSourceParameter
Public NotInheritable Class CompositionEffectSourceParameter
Implements IGraphicsEffectSource
Héritage
Object Platform::Object IInspectable CompositionEffectSourceParameter
Attributs
Implémente

Configuration requise pour Windows

Famille d’appareils
Windows 10 (introduit dans 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v1.0)

Exemples

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

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

Remarques

Consultez la section remarques de CompositionEffectBrush pour plus d’informations sur la création et l’utilisation d’effets.

Constructeurs

CompositionEffectSourceParameter(String)

Crée un instance de CompositionEffectSourceParameter.

Propriétés

Name

Nom associé à la source de l’effet.

S’applique à

Voir aussi