Search code examples
c#wpfvideotransparencyopacity

Transparent Background Color in Video Clip


I would like to play a video clip within my WPF application, and make the green color in the video transparent.

How can this be done ?

Sample Video: http://www.youtube.com/watch?v=2XJVkAOEjp0


Solution

  • You need to use shaders as explained in this SO question.

    WPF Pixel Shader library won't compile out of the box, you will need to make some changes as explained here, in the post before last.