【发布时间】:2009-07-27 18:35:26
【问题描述】:
有没有办法使用 WPF 反转屏幕区域? 在 Win32 中,我会使用 BitBlt ( .... DSTINVERT ...)。 当然,我会使用 Interop,但这看起来很混乱。
【问题讨论】:
有没有办法使用 WPF 反转屏幕区域? 在 Win32 中,我会使用 BitBlt ( .... DSTINVERT ...)。 当然,我会使用 Interop,但这看起来很混乱。
【问题讨论】:
我会考虑使用Pixel Shaders。它们经过 GPU 优化,因此它们可能会运行得更快。有一个InvertImage effect available on CodePlex。
【讨论】:
您可能想要调查 System.Windows.Forms.ControlPaint.FillReversibleRectangle。它不是 WPF,但它是 .NET 并且“不那么混乱”。
【讨论】: