抽象液晶密度 [英] Abstracted LCD Density
问题描述
您是如何计算的抽象液晶密度为AVD?
How do you calculate the Abstracted LCD Density for an AVD ?
推荐答案
在抽象液晶密度似乎在每英寸虽然的文档没有明确说。
The Abstracted LCD Density seems to be measured in dots per inch although the docs don't explicitly say that.
The wikipedia article on Pixel density has a helpful section explaining how to calculate this: basically the number of pixels per inch along the diagonal can be calculated by this formula, where x
and y
are the horizontal and vertical resolution (so that sqrt(x*x + y*y)
is the length of the diagonal in pixels), and d
is the length of the diagonal in inches:
sqrt(x*x + y*y)/d
因此,例如,一个 LG的Optimus One P500 被列为具有<$ C $的屏幕分辨率C> 320 按 480
,而 3.2
英寸,所以它的屏幕对角线尺寸将有一个密度非常接近 180dpi
。
So for example, a LG Optimus One P500 is listed as having a screen resolution of 320
by 480
, and a diagonal screen size of 3.2
inches, so it would have a density very close to 180dpi
.
这篇关于抽象液晶密度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!