bitmapeffect

WPF - Programmatic Binding on a BitmapEffect

I would like to be able to programmatically bind some data to the dependency properties on a BitmapEffect. With a FrameworkElement like TextBlock there is a SetBinding method where you can programmatically do these bindings like: myTextBlock.SetBinding(TextBlock.TextProperty, new Binding("SomeProperty")); And I know you can do it in s...

DropShadowBitmapEffect Doesn't work on TextBlock

Does anyone know why the DropShadowBitmapEffect and the EmbossBitmapEffect won't work on a TextBlock (not textBOX) in WPF? OuterGlow, Blur and Bevel seem to work fine. ...

WPF - Managed BitmapEffect

Is there a way to write a BitmapEffect in 100% Managed Code? I know that it would run a lot slower than using unmanaged code, but I'd like to write a BitmapEffect but its been a long time since I've done any C++ programing, plus the application might have to run in partial trust (so unmanaged code won't be permissible). The effect is goi...

Use WPF object to 'punch' hole in another?

I've got an ellipse which is just a circle. My problem is I want to cut out a circle-shaped hole from the middle of the bigger circle and nothing seems to work. I've tried opacity masks and those did not work whatsoever. To further complicate things, the big circle has a DropShadowEffect. But because the circle is slightly transparent,...

Image Processing and Effects in ActionScript-3

I want to implement various effects like Sepia, GrayScale, Posterization etc. on BitmapData in ActionScript-3. How to do this and What is most efficient way to do this ? Thanks in advance!! ...

How to change BitmapEffect in custom WPF control via C# code

I have a custom control type like: <Grid> ... </Grid> and Grid.BitmapEffect property. How can I change BitmapEffetc in this Control (Grid) via C# code (e.g. on event)? Code sample - part of custom control: [...] <Grid Background="#FFE5AA"> <Grid.RowDefinitions> <RowDefinition Height="62*"/> <RowDefinitio...

How would I write an HLSL bevel shader for Silverlight?

I know that Silverlight doesn't directly support the WPF bitmap effects, but I also know that Silverlight 3 supports HLSL shaders. Would it be relatively simple to write a bevel effect, ilke the one in WPF, and if so, can somebody recommend a good resource to learn how to do it? ...

OuterGlowBitmapEffect Alternative Without BitmapEffects

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. ...

Restrict the area that a WPF shader effect gets applied to

How can I restrict the area that a WPF shader effect gets applied to, in a similar manner to the way the obsolete BitmapEffectInput.AreaToApplyEffect used to work for BitmapEffects? Is there an equivalent property for shader effects, or do I have to add it myself within each and every shader effect that I'm writing? ...