Applying a pixel shader effect to a portion of an image

Posted by Nick on Stack Overflow See other posts from Stack Overflow or by Nick
Published on 2010-03-16T01:29:36Z Indexed on 2010/03/16 1:39 UTC
Read the original article Hit count: 227

Filed under:

I have a ScrollViewer that contains a very large video (16 megapixel @ 10fps) and I want to apply a pixel shader effect to it. Given the size of the images I can't apply the effect directly to the image. So I apply the effect to the ScrollContentPresenter in the control style. Which is great, everything runs nice and fast. However, I'm also rendering annotations inside of the ScrollContentPresenter which I do NOT want effects applied to (but they need to move and scale along with the image).

Is there to apply the effect just to the clipped and displayed portion of the image or do I need to build a rather more complex control?

© Stack Overflow or respective owner

Related posts about wpf