为什么 iPhone 6 Plus 要将 3x 渲染的 2208x1242 分辨率缩小到 1080p 屏幕上?
7 个回答
新的资料在APPLE官网已经放出来了。这也间接证实了,iPhone6 Plus实际渲染出的是2208 x 1242尺寸的画面。
iOS Human Interface Guidelines: Launch ImagesLaunch Images
......Although it’s best to use a launch file for iPhone 6 and iPhone 6 Plus, you can instead supply static launch images if necessary. If you need to create static launch images for these devices, use the following sizes:
For iPhone 6:
750 x 1334 (@2x) for portrait
1334 x 750 (@2x) for landscape
For iPhone 6 Plus:
1242 x 2208 (@3x) for portrait
2208 x 1242 (@3x) for landscape
这个问题下 @Bill Cheng 的答案里也提到了,他答案里给出的StackOverFlow的链接上已经有人给出解释了。链接在这里
iPhone 6 Plus resolution confusion: Xcode or Apple's website?简单解释下:
iPhone 6+除外,其他所有iPhone的DPI是一致的,都是326,用@2x的素材。
但是6+的实际DPI是401,理论上苹果应该用401/326 * @2x=@2.46x的素材。但是这个奇葩的比例对开发者而言很难切图。所以苹果为方便开发者用的是@3x的素材,然后再缩放到@2.46x上,实际上是缩放到2.46/3=83%。实际上苹果选取了一个接近比例的87%。
这样算下来,物理分辨率和虚拟分比率的比例是87%,也就是1920/0.87=2208,1080/0.87=1242.
好处就是开发者更方便,比如准备素材时,字号可以直接调成3x的。