Bitmap Effect已经过时了。UIElement.BitmapEffect property is obsolete

没办法,Bitmap Effect的效率过于低下,有时还有莫名其妙的界面闪烁。所以用有硬件(GPU)支持的Effect来代替吧。注意,只适用于.Net 3.5 sp1以后版本。

有以下文章可以参考:

  1. WPF Sample Series - Solution for the Obsolete BitmapEffect Property and Rendering an OuterGlowBitmapEffect
  2. GPU-accelerated custom Effects for WPF
  3. Using Effects in WPF (Part 2)
  4. More details on how Effects work
  5. Writing custom GPU-based Effects for WPF
  6. A simple Effect sample project and ClickOnce application
  7. Writing custom Effects - adding parameters to Effects
  8. A VisualStudio BuildTask and project and item templates for writing ShaderEffects
  9. Introducing Multi-Input Shader Effects
  10. A More Useful Multi-Input Effect
DropShadowEffect

相关文章:

  • 2021-10-29
  • 2022-12-23
  • 2021-12-04
  • 2022-01-20
  • 2021-06-04
  • 2021-09-24
  • 2021-11-14
  • 2021-12-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
  • 2021-07-14
  • 2022-12-23
相关资源
相似解决方案