How can I create my own graphic effect in WPF?

I have an Image object in my application that a user can drag and drop. The object displays a partially transparent image, so through it you can see the background background (which in itself is a bitmap image).

I want to add a graphic effect for this object. Suppose I already have an algorithm for this effect - this is not a problem. The problem is how to get this algorithm in WPF.

So, I tried to see how DropShadowEffect works, but the implementation displayed in Reflector is empty. I also tried to see which methods from the abstract Effect and ShaderEffect I should override, and there seems to be something ShaderEffect to the actual effect.

So how do I create my own effect?

+4
source share
2 answers

A very cool Shazzam tool (and resource), it helps you create effects and contains a good tutorial.

+1
source

All Articles