iOS开发:iPhone分辨率指南
2016-08-05 13:34
459 查看
转载自:http://blog.csdn.net/cuibo1123/article/details/39405973
-------------------------
原文及翻译文本
Points
点
At the beginning, coordinates of all drawings are specified in points.
在一开始,所有的图形位置都由坐标点指定。
Points are abstract units, they only make sense in this mathematical coordinate space.
点是抽象的单位,它们只在逻辑坐标系上有意义。
Rendered Pixels
像素渲染
Point-based drawings are rendered into pixels. This process is known as rasterization
基于点的图像被渲染为像素,这个过程被称为栅格化。
Point coordinates are multiplied by scale factor to get pixel coordinates. Higher scale factors result in higher level of detail.
点坐标和比例系数相乘得到像素坐标。更高的比例因子会显示更多细节。
Physical Pixels
物理像素
The device screen may have lower pixel resolution than the image rendered in previous step.
设备屏幕所能呈现的分辨率可能要比上一步骤低。
Before the image can be displayed, it must be downsampled (resized) to lower pixel resolution.
要显示之前的图像,必须以较低的像素分辨率重新采样(调整大小)。
Physical Device
物理设备
Finally, computed pixels are displayed on the physical screen.
最后,计算的像素被显示在物理屏幕上。
The PPI number tells you how many pixels fit into one inch and thus how large the pixels appear in the real world.
PPI数决定一英寸装入多少像素,从而把较大的物理像素显示到真实屏幕上。
PS:
对于开发中设置的位置、尺寸单位都是以点pt为基本单位的。
系统会根据屏幕的性质转换为像素单位
由于视网膜屏在同样尺寸下分辨率是非视网膜屏的两倍,所以
非视网膜屏:1 pt = 逻辑像素 1 px = 物理像素 1 px
视网膜屏: 1 pt = 逻辑像素 1 px = 物理像素 2 px
术语:
pt: point
px: pixel
PPI: pixels per inch
-------------------------
原文及翻译文本
Points
点
At the beginning, coordinates of all drawings are specified in points.
在一开始,所有的图形位置都由坐标点指定。
Points are abstract units, they only make sense in this mathematical coordinate space.
点是抽象的单位,它们只在逻辑坐标系上有意义。
Rendered Pixels
像素渲染
Point-based drawings are rendered into pixels. This process is known as rasterization
基于点的图像被渲染为像素,这个过程被称为栅格化。
Point coordinates are multiplied by scale factor to get pixel coordinates. Higher scale factors result in higher level of detail.
点坐标和比例系数相乘得到像素坐标。更高的比例因子会显示更多细节。
Physical Pixels
物理像素
The device screen may have lower pixel resolution than the image rendered in previous step.
设备屏幕所能呈现的分辨率可能要比上一步骤低。
Before the image can be displayed, it must be downsampled (resized) to lower pixel resolution.
要显示之前的图像,必须以较低的像素分辨率重新采样(调整大小)。
Physical Device
物理设备
Finally, computed pixels are displayed on the physical screen.
最后,计算的像素被显示在物理屏幕上。
The PPI number tells you how many pixels fit into one inch and thus how large the pixels appear in the real world.
PPI数决定一英寸装入多少像素,从而把较大的物理像素显示到真实屏幕上。
PS:
对于开发中设置的位置、尺寸单位都是以点pt为基本单位的。
系统会根据屏幕的性质转换为像素单位
由于视网膜屏在同样尺寸下分辨率是非视网膜屏的两倍,所以
非视网膜屏:1 pt = 逻辑像素 1 px = 物理像素 1 px
视网膜屏: 1 pt = 逻辑像素 1 px = 物理像素 2 px
术语:
pt: point
px: pixel
PPI: pixels per inch
相关文章推荐
- iOS开发之iPhone分辨率终极指南(含iphone6/6+)
- ios开发——iPhone屏幕尺寸、分辨率及适配
- iPhone 5/iOS 6 前端开发指南
- 6-读书笔记----iOS开发指南:从零基础到App Store上架--iOS-iPhone与iPad应用开发的差异和iOS分层架构设计
- 【iPhone开发】ios客户端icon和loading页UI分辨率需求
- iOS【开发 iOS11、iPhone X、Xcode9 适配指南】
- iOS开发之iOS11、iPhone X、Xcode9 适配指南
- iPhone 5/iOS 6前端开发指南
- IOS 开发 iPhone屏幕尺寸、分辨率及适配
- Delphi for iOS开发指南(16):在iOS客户端应用程序中连接企业级数据库
- iOS——iPhone屏幕尺寸、分辨率及适配
- ios iphone开发中使用UIActivityIndicatorView 控件来做等待提示。
- (iPhone/iPad开发)在iOS设备上实现摇晃手机体验的相关功能
- 微信iOS WKWebview 网页开发适配指南
- iOS开发_iphone 实现剪贴板操作_iphone 复制粘贴功能
- Delphi for iOS开发指南(8):在iOS应用程序中使用Tab组件来显示分页
- 【iOS-Cocos2d游戏开发之十四】音频/音效/视频播放(利用Cocos2D-iPhone-Extensions嵌入Cocos2d进行视频播放!)
- iOS 开发 是分别开发一个iphone 和 ipad 好? 还是开发一个 Universal好?
- Objective-C ,ios,iphone开发基础:快速实现一个简单的图片查看器
- WebRTC for android ios开发官方指南