【问题标题】:Is there an equivalent of BitBlt in WPF?WPF中是否有等效的BitBlt?
【发布时间】:2009-07-27 18:35:26
【问题描述】:

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

【问题讨论】:

    标签: c# .net wpf winapi


    【解决方案1】:

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

    【讨论】:

    【解决方案2】:

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

    【讨论】:

      猜你喜欢
      • 2021-06-15
      • 2012-02-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-01-11
      • 1970-01-01
      相关资源
      最近更新 更多