Is there a way to invert a region of the screen using WPF? In Win32, I would do BitBlt ( .... DSTINVERT ...). Of course, I would use Interop but that seems pretty messy.
+4
A:
I'd look at using Pixel Shaders. They're GPU optimized so they will likely run more quickly. There's an InvertImage effect available on CodePlex.
Jon Galloway
2009-07-27 18:37:32
Does it work with .NET 3.5?
tom greene
2009-07-27 18:42:42
(I meant to say) Does it work with .NET 3.0?
tom greene
2009-07-27 18:43:19
No, it requires .NET 3.5 SP1. I think the "WPF way" to do it in .NET 3.0 is to use a CustomBitmapEffect (http://msdn.microsoft.com/en-us/library/ms771475.aspx), but there may be a better way.
Jon Galloway
2009-07-27 18:55:38
+2
A:
You might want to investigate System.Windows.Forms.ControlPaint.FillReversibleRectangle. It's not WPF, but it is .NET and "less messy".
Michael McCloskey
2009-07-27 19:52:07