csharp System.Windows.UIElement.BitmapEffect类(方法)实例源码

下面列出了csharp System.Windows.UIElement.BitmapEffect 类(方法)源码代码实例,从而了解它的用法。

作者:.NET开发    项目:System.Window   
// Get a reference to the Button.
Button myButton = (Button)sender;

// Initialize a new BlurBitmapEffect that will be applied
// to the Button.
BlurBitmapEffect myBlurEffect = new BlurBitmapEffect();

// Set the Radius property of the blur. This determines how 
// blurry the effect will be. The larger the radius, the more
// blurring. 
myBlurEffect.Radius = 10;

// Set the KernelType property of the blur. A KernalType of "Box"
// creates less blur than the Gaussian kernal type.
myBlurEffect.KernelType = KernelType.Box;

// Apply the bitmap effect to the Button.
myButton.BitmapEffect = myBlurEffect;


问题


面经


文章

微信
公众号

扫码关注公众号