如何转换分辨率的dpi [英] How to convert resolution to dpi

查看:744
本文介绍了如何转换分辨率的dpi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做的分析,发现大多数我的应用程序的用户将是三星Galaxy S2和三星Galaxy Note的。其技术规范做研究,我发现: 银河S2: 480 * 800像素,4.3显示屏

I did my analysis and found that most of the users of my application will be of samsung galaxy S2, and samsung galaxy note . Doing research on their technical spec, I found: Galaxy S2: 480 x 800 pixels, 4.3' display

银河注:  1280 * 800,5.3屏幕

Galaxy Note: 1280 x 800, 5.3"screen

我如何归类到这些布局大小和desnity水平?我想我可以找出版面大小中提到的android开发页面 但是我无法知道浓度水平(低,中高xhigh)。他们说,我需要的DPI,但在功能规格,我很少看到dpi时,我只看到了上述决议 谢谢

How can I categorize these into Layout size and desnity level? I think I can figure out the layout size as mentioned in the android development page However I am unable to know the density level (low, medium high xhigh). They say that I need the dpi but in functional spec, I rarely see the dpi, I just see the above resolution Thank you

推荐答案

首先计算密度密度=平方根((WP * WP)+(马力*马力))/ DI

,其中WP是像素宽度的分辨率,惠普是像素高的分辨率和双是英寸对角线尺寸。它会来〜208 S2。

LDPI〜120DPI,MDPI〜160dpi,华电国际〜240dpi,xhdpi〜320dpi 。从DPI的这些值

where wp is width resolution in pixels, hp is height resolution in pixels and di is diagonal size in inches. It would come ~208 for S2.

ldpi ~120dpi,mdpi ~160dpi, hdpi~240dpi, xhdpi ~320dpi. Compare from these values of dpi

这篇关于如何转换分辨率的dpi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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