Multiple resolutions on Windows Phone 8.1

你说的曾经没有我的故事 提交于 2019-12-11 09:36:38

问题


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.

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.

Do you have any idea on this?

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:


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.

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 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."

And also below one.

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

Hope this helps.



来源:https://stackoverflow.com/questions/26808415/multiple-resolutions-on-windows-phone-8-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!