Windows Phone 8.1 上的多种分辨率 [英] Multiple resolutions on Windows Phone 8.1

查看:30
本文介绍了Windows Phone 8.1 上的多种分辨率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在转向 WP8.1,并且支持不同的分辨率,因此我需要为每个缩放因子创建正确的资源.

I'm moving to WP8.1 and there are different resolutions to be supported so I need to create the correct resources for each scaling factor.

遵循本指南,我发现我可以使用简单的命名约定,相应的图像将自动加载,而无需通过代码进行管理.

Following this guide I've found out that I can use a simple naming conventions and the appropriate image will be automatically loaded without having to manage it from code.

指南没有说,我似乎在任何地方都找不到,是原始尺寸应该是什么.

What the guide doesn't say, and I can't seem to find it anywhere, is what the original size should be.

我需要知道 100 缩放因子对应的分辨率是哪一个,以便我可以计算缩放后的图像的大小.

I need to know which one is the resolution that corresponds to the 100 scaling factor so that I can calculate the size of the scaled images.

你对此有什么想法吗?

Windows 应用商店(我没有使用Silverlight)应用程序有很多文档,但似乎所有内容都与台式机/平板电脑有关即使有电话图标.

There's a lot of documentation for Windows Store (I'm not using Silverlight) apps but everything seems always related to desktop/tablets even if there's the phone icon.

推荐答案

请参考1.ai"部分作为指南 (http://msdn.microsoft.com/library/windows/apps/xaml/hh965325.aspx) 由您提及.您需要创建 96 DPI 的图像,考虑为 100% 比例.

Please refer section "1.a.i" as guideline (http://msdn.microsoft.com/library/windows/apps/xaml/hh965325.aspx) mention by you. You need to create image with 96 DPI, considering as 100% scale.

我还建议参考此链接中提供的指南 http://msdn.microsoft.com/en-US/library/windows/apps/xaml/hh465362.aspx.请参阅以下来自提供链接的声明.

I also recommended refer guidelines provided in this link http://msdn.microsoft.com/en-US/library/windows/apps/xaml/hh465362.aspx. Refer below statement from provided link.

"Windows 运行时应用程序(在 Windows、Windows Phone 或两者上运行)由系统自动缩放以确保一致无论屏幕的像素密度如何,都具有可读性和功能性."

"Windows Runtime apps (that run on Windows, Windows Phone, or both) are automatically scaled by the system to ensure consistent readability and functionality regardless of a screen's pixel density."

也低于一个.

"Windows 根据物理条件确定要使用的缩放平台屏幕尺寸、屏幕分辨率、屏幕 DPI 和窗体因素."

"Windows determines which scaling plateau to use based on the physical screen size, the screen resolution, the DPI of the screen, and form factor."

希望这会有所帮助.

这篇关于Windows Phone 8.1 上的多种分辨率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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