GDI 的相对优点+ 和WPF

发布于 2024-07-08 18:52:44 字数 1449 浏览 8 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

惯饮孤独 2024-07-15 18:52:44

GDI+ 与 WPF
WPF 图形子系统有哪些好处? 让我们看看:

  1. 保留模式绘图/合成
  2. 矢量图形
  3. 真正的透明度
  4. 以及更多...

GDI+ 的好处是什么? 唔。 这更难,因为我非常喜欢 WPF。 但是,如果您需要不断地重新创建尝试渲染的对象的几何形状,那么您可能需要 GDI+ 提供的立即模式 API。

这里有两个(一个两篇)关于这个问题的非常好的博客文章。

请注意,上述博客文章相当旧。它们仍然包含大量信息,但也要注意,自 WPF 原始版本 (.NET 3.0) 以来,WPF 团队在性能和图形功能方面取得了显着进步)。

系统要求
除了操作系统必须为 Windows XP SP 2 或更高版本以及必须安装(至少).NET 3.0 之外,它们实际上没有 WPF 应用程序的最低系统要求。 然而,话虽这么说,运行 WPF 应用程序的机器中的显卡质量越高越好。

我们自己注意到,即使在较旧的硬件上,WPF 也能表现得很好,特别是如果您没有做任何过于棘手或花哨的事情。

这意味着什么? 嗯,根据我自己的经验,如果您开始使用 WPF 3D 和/或位图效果 进行任何操作,请更仔细地观察您的表现。 事实上,我鼓励您在整个应用程序开发过程中监控您的性能。

我要补充的最后一件事......是我们看到了一些非常奇怪的图形问题()与某些视频解决方案,特别是英特尔集成视频。

请查看另一篇 StackOverflow 帖子,了解有关硬件限制的更多信息,特别是,查看有关渲染层的信息。

GDI+ vs. WPF
What are the benefits of WPF graphics subsystem? Let's see:

  1. Retained Mode Drawing/Composition
  2. Vector Graphics
  3. True Transparency
  4. And more ...

What are the benefits of GDI+? Hmm. That's harder, because I love WPF so much. However, if you were in the position to have to be constantly recreating the geometry of the objects that you are trying to render, then you might need the immediate mode API that GDI+ offers.

Here are two (one, two) really great blog posts on this matter.

(Note that the above blog posts are rather old. They still contain great information, but also be aware that the WPF team has made significant advances in performance and graphics capabilities since the original version of WPF (.NET 3.0)).

System Requirements
They're are really no minimum system requirements for WPF applications other than that the operating system must be at Windows XP SP 2 or greater and that .NET 3.0 (at least) must be installed. However, that being said, the better quality graphics card in the machine the WPF application is running on the better.

What we have noticed ourselves is that WPF performs quite well even on older hardware, especially if you aren't doing anything too tricky or fancy.

What does that mean? Well, in my own experience, watch your performance more closely if you start doing anything with WPF 3D and/or bitmap effects. In fact, I would encourage you to monitor your performance throughout the development of the application.

One final thing I would add ... is that we have seen some very weird graphics issues (this and this) with certain video solutions and in particular with Intel integrated video.

Please check out this other StackOverflow post for more info on hardware limitations, and in particular, check out the information on Rendering Tiers.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文