您是如何计算的抽象液晶密度为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.
在像素密度的维基百科的文章有一个有用的部分解释如何计算的:每英寸的像素基本数沿对角线可以通过这个公式,其中来计算X
和是
是水平和垂直分辨率(使的sqrt(X * X + Y * Y)
是对角线以像素为单位的长度),而 D
的长度对角线以英寸:
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 被列为具有 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
.
相关推荐
最新文章