UWP中是否有API可以检索设备dpi?在Android中,有getDisplayMetrics().density;
方法。 UWP中是否有等同的东西?
好像我在寻找RawDPI
或以前在电话上可用的ScaleFactor
。
最佳答案
经过一点挖掘发现它here:Windows.Graphics.Display.DisplayInformation
许多可用的好东西包括原始dpi和比例因子。
关于c# - 检索Windows设备的DPI,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32125385/