如何获得每个监视器PPI [英] How to get each monitor PPI

查看:106
本文介绍了如何获得每个监视器PPI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在C#中获取每个显示器PPI(每英寸像素数),使用PixelsPerXLogicalInch和PixelsPerYLogicalInch尝试Win32_DesktopMonitor,但它们与显示器规格不同(差异为8)感谢您的想法。

Is it possible to get each monitor PPI(Pixel per inch) in C#, tried Win32_DesktopMonitor using PixelsPerXLogicalInch and PixelsPerYLogicalInch, but they are not same as in monitor specifications(difference was 8) Thanks for ideas.

推荐答案

这很有可能。监视器规范将为您提供硬件值。 Windows将为您提供可用的功能。它们可能不一样。硬件制造商为您提供最高的#,而操作系统将回归现实。
这种情况​​发生在很多事情上(内存,硬盘空间等)。我说你的计算是正确的,但你没有发布,所以我不能肯定地说。
That is quite possible. The monitor spec is going to be giving you the hardware value. Windows is going to give you what is available. They may not be the same. Hardware manufacturers give you the highest # while the OS is going to return the reality. This happens for a lot of things (memory, HDD space, etc). I'd say your calculations are correct but you didn't post them so I cannot say for certain.


这篇关于如何获得每个监视器PPI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆