WPF 的毛玻璃效果
阿新 • • 發佈:2018-11-11
etc none highlight tty svg flow tle http 原創 原文:WPF 的毛玻璃效果
版權聲明:本文為博主原創文章,未經博主允許不得轉載。 https://blog.csdn.net/koloumi/article/details/76917519
其實很簡單,微軟自帶的一個特效而已,叫做BlurEffect
<Image Width="{Binding ElementName=Main,Path=Width}" Height="{Binding ElementName=Main,Path=Height}" Source="Resouse/pic1.jpg" Stretch="Fill">
<Image.Effect>
<BlurEffect Radius="200"></BlurEffect>
</Image.Effect>
</Image>
如此便可以讓這張圖片進行高斯模糊,就是毛玻璃效果。
WPF 的毛玻璃效果