WPF如何获取机器的渲染层?
我正在使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它使用 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.