Hard shadow on top of noisy shadow : BitmapEffect « Windows Presentation Foundation « C# / CSharp Tutorial






<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  x:Class="SDKSample.Window1" Title="Text Shadow Samples"
  Background="FloralWhite">
  <StackPanel>

      <TextBlock FontSize="64"
        Text="asdf"
        Foreground="Silver"
        Grid.Column="1" Grid.Row="3">
        <TextBlock.BitmapEffect>
          <BitmapEffectGroup>
            <DropShadowBitmapEffect
              ShadowDepth="3"
              Direction="330"
              Color="Black"
              Opacity="0.75"
              Softness="0.0" />
            <DropShadowBitmapEffect
              Noise="0.75"
              ShadowDepth="6"
              Direction="330"
              Color="Black"
              Opacity="0.35"
              Softness="0.25" />
          </BitmapEffectGroup>
        </TextBlock.BitmapEffect>
      </TextBlock>


  </StackPanel>
</Window>
WPF Hard Shadow On Top Of Noisy Shadow








24.97.BitmapEffect
24.97.1.A Beveled Button and TextBlock with BevelBitmapEffectA Beveled Button and TextBlock with BevelBitmapEffect
24.97.2.Shadow Effect and DropShadowBitmapEffectShadow Effect and DropShadowBitmapEffect
24.97.3.Embossed Effect with EmbossBitmapEffectEmbossed Effect with EmbossBitmapEffect
24.97.4.Glowing Effect with OuterGlowBitmapEffectGlowing Effect with OuterGlowBitmapEffect
24.97.5.Blur Effect with BlurBitmapEffectBlur Effect with BlurBitmapEffect
24.97.6.Create a shadow effect for displayed text.Create a shadow effect for displayed text.
24.97.7.Hard single shadowHard single shadow
24.97.8.Hard shadow on top of soft shadowHard shadow on top of soft shadow
24.97.9.Hard shadow on top of noisy shadowHard shadow on top of noisy shadow
24.97.10.Shadow effect by creating an outer glowShadow effect by creating an outer glow