计算iPhone上的像素大小 [英] Calculating pixel size on an iPhone

查看:105
本文介绍了计算iPhone上的像素大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

iPhone SDK中是否有计算单个像素大小(单位为毫米)的方法?

,像素的大小是一个常数。当前iPhone或iPod touch的屏幕尺寸为2英寸x 3英寸(50.8毫米x 76.2毫米),分辨率为320 x 480像素。

<50> 50.8 / 320(或76.2 / 480)=> 1像素的大小为0.15875 mm x 0.15875 mm


Is there a way in the iPhone SDK to calculate the size (in millimeters) of a single pixel?

解决方案

Well, the size of a pixel is a constant. The screen size of a current iPhone or iPod touch 2" x 3" (50.8 mm x 76.2 mm) and the resolution is 320 x 480 pixel.

50.8 / 320 (or 76.2 / 480) => the size of 1 pixel is 0.15875 mm x 0.15875 mm

这篇关于计算iPhone上的像素大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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