8

What is a good alternative to OuterGlowBitmapEffect?

Preferably one that can be used in a theme/style and one that can be used without BitmapEffects.

Dave Clemmer
  • 3,777
  • 12
  • 48
  • 72
akshaykarthik
  • 1,057
  • 2
  • 13
  • 29
  • 1
    General note: The OuterGlowBitmapEffect is now (.NET 4) marked as Obsolete, and is not supported (doesn't throw anything but does nothing). – Shimmy Weitzhandler Mar 02 '11 at 18:29
  • Here are some examples http://karlshifflett.wordpress.com/2008/11/04/wpf-sample-series-solution-for-the-obsolete-bitmapeffect-property-and-rendering-an-outerglowbitmapeffect/ – NoWar May 15 '12 at 19:23

2 Answers2

15

The standard Effect library provides a DropShadowEffect that can be set up to look just like an OuterGlowBitmapEffect. The nice thing about this effect is that it is hardware-accelerated (unlike the bitmap effects, which are done in software). To make the DropShadowEffect look like a glow, simply set the ShadowDepth property to 0.

Charlie
  • 14,861
  • 3
  • 62
  • 67
0

Donno if is good or not, I never tested it, I just read about it, check it out here.

Shimmy Weitzhandler
  • 97,705
  • 120
  • 409
  • 613