WPF如何获取机器的渲染层?

发布于 2024-11-14 12:50:55 字数 279 浏览 3 评论 0原文

我正在使用 System.Windows.Media.RenderCapability.Tier 来获取运行 WPF 应用程序的计算机的渲染层,但我想知道它如何获取此信息。我正在寻找类似的信息: 它使用 Com 组件吗? 它使用 Direct X 吗? 它使用DDE吗? 它使用 Windows 消息循环吗? 如果显卡上禁用硬件渲染,它会以不同的方式获得结果吗?

我在 Windows Xp 上使用 .Net3.5,如果这对答案有任何影响(如果它不同,我会对它在 Windows 7 上的工作方式感兴趣)。

谢谢

I am using System.Windows.Media.RenderCapability.Tier to get the Rendering Tier of the machine my WPF application is running on but I would like to know how it gets this information. I'm looking for information like:
Does it use Com componets?
Does it use Direct X?
Does it use DDE?
Does it use Windows Message loop?
Does it get the result in a different way if Hardware Rendering is disabled on the graphics card?

I'm using .Net3.5 on Windows Xp if that has any bearing on the answer (I would be interested in how it works on Windows 7 if it is different).

Thanks

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

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

发布评论

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

评论(1

痴骨ら 2024-11-21 12:50:55

它使用 DirectX 来查询图形硬件的功能。视频内存和其他支持的 DirectX 功能(例如,通过 D3DCAPS9) 根据 此处描述的规则

It uses DirectX to query the capabilities of the graphics hardware. The video memory and other supported DirectX capabilities (for example, via D3DCAPS9) determine the decision based on the rules that are described here.

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