【问题标题】:How to detect/find Windows 8 current scale percentage如何检测/查找 Windows 8 当前比例百分比
【发布时间】:2013-01-18 00:43:14
【问题描述】:

Windows 8 中有三个比例百分比: •100% 未应用缩放 •140% 适用于高清平板电脑 •4-XGA 平板电脑为 180%

如何在 WinRT 代码中检测此时屏幕的百分比?

(我想做一个自定义图像服务,从数据库中加载最佳分辨率)

【问题讨论】:

    标签: resources windows-runtime scaling


    【解决方案1】:

    使用

    var currentScale = DisplayProperties.ResolutionScale;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-04-15
      • 2022-11-05
      • 1970-01-01
      • 1970-01-01
      • 2021-11-22
      • 2020-11-22
      相关资源
      最近更新 更多