WPF XAML-图像的玻璃效果

旅游

是否可以为该示例中包含的缩略图创建图像的玻璃状显示(例如,带有Gordon Ramsay图像的缩略图对我要重新创建的图像具有很好的蓝色玻璃效果)?

您知道我该如何解决吗?DropShadowBitmapEffect和

<Border BorderThickness="1"
                Height="94" Width="175.5" Margin="3,3,0,3" HorizontalAlignment="Left" VerticalAlignment="Center">
                <Border.BorderBrush>
                    <SolidColorBrush Color="#FFF9F9F9" Opacity="0.5"/>
                </Border.BorderBrush>
                <Border.BitmapEffect>
                    <DropShadowBitmapEffect ShadowDepth="1" Softness="0.305" Color="#FFF9F9F9"/>
                </Border.BitmapEffect>
                        <Image Name="myImg" Stretch="Fill"/>
            </Border>
谢里登

它看起来像BrushBorder是一个淡蓝色/灰色SolidColorBrush,也许有Background相同颜色的。我认为“玻璃”或“褪色边缘”效果是通过在OpacityMask完成Image

您可以OpacityMaskMSDN的“不透明蒙版概述”页面中找到有关使用的更多信息

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章