C# 模糊文字 点击按钮文字模糊
代码说明:
C# 制作的模糊文字 点击按钮文字模糊效果,这是基于WPF的一个图像特效,将文字模糊显示,如图所示,运行本程序后,点击窗口中的按钮,即可将按钮中的文字模糊处理。下面来看具体的模糊按钮文字的实现代码: if (((Button)sender).BitmapEffect != null) { ((Button)sender).BitmapEffect = null; } else { Button MyButton = (Button)sender; var MyBlurEffect = new System.Windows.Media.Effects.BlurBitmapEffect(); MyBlurEffect.Radius = 4; MyBlurEffect.KernelType = System.Windows.Media.Effects.KernelType.Box; MyButton.BitmapEffect = MyBlurEffect; }
下载说明:请别用迅雷下载,失败请重下,重下不扣分!


