windows-store-apps - 防止 Windows Store 应用程序中的像素化图像

标签 windows-store-apps windows-8.1 winjs win-universal-app

enter image description here

在我使用过的任何应用程序中显示的任何足够大小的图像在调整大小时都会变得像素化。上面的屏幕截图显示了一张高分辨率照片 - 当输出时 - 变得严重像素化。

我已经尝试了 IE 特有的旧(鲜为人知)属性 - ms-interpolation-mode: bicubic;但这没什么区别。

我已经在多台机器上的 Microsoft 新闻应用程序中看到了这个问题,所以我认为这不是仅限于我的机器或我显示图像的方式的问题。

我已经在 Windows 8/8.1 和 10 中尝试过,结果相同。

在 Edge 和 IE11 中尝试相同的代码效果很好,图像非常清晰,没有像素化。这是构成应用示例屏幕截图的确切 CSS 和图像。

.exampleImage {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
    -ms-interpolation-mode: bicubic;
}
<img src="http://blog-admin.cddev.org/wp-content/uploads/2014/12/Aston-Martin-DB10-Front-Three-Quarter-e1417707100993.jpg" class="exampleImage" />


有谁知道如何停止像素化?

最佳答案

我认为这是缺乏子像素抗锯齿,IE 和现代 UI 应用程序似乎不支持。

There is actually a feature request for it here, with 5699 votes on User Voice, titled 'Return subpixel antialiasing to IE and ModernUI apps'

该请求与字体有关,但在幕后,它是同一回事。

关于windows-store-apps - 防止 Windows Store 应用程序中的像素化图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32755868/

相关文章:

java - 在 Windows 8.1 上安装 Play 框架

javascript - 这个未指定的错误从何而来?

database - 我的 Win JS SQLite 3 应用程序需要太多时间来进行插入

javascript - 像Windows 8 Metro IE一样创建键盘 "Extension"

c# - 使用 Azure 移动服务的 Azure Active Directory 身份验证失败

windows-runtime - ListView 重新排序是否在 Windows 10 RT 应用程序上停止工作?

c# - 如何在我的 WPF 项目中导入 windows.media.capture?

validation - Windows 商店应用程序上的输入验证

c# - Windows 应用商店应用程序拍照和处理速度慢

c# - Windows 应用商店应用程序中的 Grid.ShowGridLines