Can I use the ColorAlphaKeyEffect to ignore green pixels instead of black?

Mar 5, 2011 at 1:42 AM

I'm using the following code, and it works all right with black pixels:

ColorKeyAlphaEffect effect = new ColorKeyAlphaEffect();

Brush brush = Effect.ImplicitInput;
effect.Input = brush;

media.Effect = effect;

But what I really want to do is do a green screen of the movie in the MediaElement control. The movie has a lot of black, so the effect applying to black pixels doesn't work for us.

Is it possible to change it to green or any other color?


Apr 21, 2013 at 7:00 PM
I know it's been along time but just in case anyone else runs across this: