在WPF中是否有相当于BitBlt的东西?

时间:2009-07-27 18:35:27

标签: c# .net wpf winapi

有没有办法使用WPF反转屏幕区域? 在Win32中,我会做BitBlt(.... DSTINVERT ...)。 当然,我会使用Interop,但这看起来很混乱。

2 个答案:

答案 0 :(得分:6)

我会考虑使用Pixel Shaders。它们经过GPU优化,因此可能会更快地运行。有InvertImage effect available on CodePlex

答案 1 :(得分:2)

您可能想要调查System.Windows.Forms.ControlPaint.FillReversibleRectangle。它不是WPF,但它是.NET并且“不那么混乱”。

相关问题