抽象液晶密度 [英] Abstracted LCD Density

查看:134
本文介绍了抽象液晶密度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您是如何计算的抽​​象液晶密度为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 被列为具有<$ 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屋!

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