DrawingContext.PushEffect(BitmapEffect, BitmapEffectInput) 方法

定義

警告

BitmapEffects are deprecated and no longer function. Consider using Effects where appropriate instead.

將指定的 BitmapEffect 內容推送到繪圖上下文中。

public:
 abstract void PushEffect(System::Windows::Media::Effects::BitmapEffect ^ effect, System::Windows::Media::Effects::BitmapEffectInput ^ effectInput);
public abstract void PushEffect(System.Windows.Media.Effects.BitmapEffect effect, System.Windows.Media.Effects.BitmapEffectInput effectInput);
[System.Obsolete("BitmapEffects are deprecated and no longer function.  Consider using Effects where appropriate instead.")]
public abstract void PushEffect(System.Windows.Media.Effects.BitmapEffect effect, System.Windows.Media.Effects.BitmapEffectInput effectInput);
abstract member PushEffect : System.Windows.Media.Effects.BitmapEffect * System.Windows.Media.Effects.BitmapEffectInput -> unit
[<System.Obsolete("BitmapEffects are deprecated and no longer function.  Consider using Effects where appropriate instead.")>]
abstract member PushEffect : System.Windows.Media.Effects.BitmapEffect * System.Windows.Media.Effects.BitmapEffectInput -> unit
Public MustOverride Sub PushEffect (effect As BitmapEffect, effectInput As BitmapEffectInput)

參數

effect
BitmapEffect

這個效果也適用於後續的繪畫。

effectInput
BitmapEffectInput

效果施加的範圍,或 null 是將效果應用於後續繪圖的整個區域。

屬性

備註

此效果會套用到所有後續繪圖操作,直到指令 Pop 移除為止。

適用於