一、阴影效果(DropShadowEffect)

        <TextBlock Text="阴影效果" FontSize="32" Canvas.Top="50">
            <TextBlock.Effect>
                <DropShadowEffect Color="Black" BlurRadius="10"></DropShadowEffect>
            </TextBlock.Effect>
        </TextBlock>

属性:

Color                    阴影的颜色

ShadowDepth      确定阴影离开内容的距离,0的时候是晕圈

Opacity                阴影的透明效果,取值0~1

Direction              阴影相对于内容的方向,取值0~360,0时在右侧,数值增加,逆时针转动

BlurRadius           模糊半径,以像素为单位的正直,标识模糊开始处到边缘的距离

 

二、BlurEffect  模糊效果

        <TextBlock Padding="10" Text="设置模糊" FontSize="32" Background="#999">
            <TextBlock.Effect>
                <BlurEffect Radius="5"></BlurEffect>
            </TextBlock.Effect>
        </TextBlock>

 

 

 

BitmapEffect位图效果是简单的像素处理操作。它可以呈现下面几种特殊效果。 

            BevelBitmapEffect        凹凸效果
            BlurBitmapEffect         模糊效果
            DropShadowBitmapEffect投影效果
            EmbossBitmapEffect     浮雕效果
            OuterGlowBitmapEffect   颜色光晕效果

 

相关文章:

  • 2021-10-29
  • 2021-08-15
  • 2021-06-16
  • 2022-12-23
  • 2021-12-24
  • 2021-05-20
  • 2022-03-04
  • 2021-09-22
猜你喜欢
  • 2021-08-10
  • 2022-01-13
  • 2021-12-25
  • 2021-09-04
  • 2021-05-02
  • 2022-12-23
相关资源
相似解决方案