简体   繁体   English

使用背景图像处理新的iPhone屏幕尺寸

[英]Handling new iPhone screen sizes with a background image

So since the new iPhone 6/6+ came out, I'm a little confused as to how to handle the asset catalogs for a background image. 因此,自从新的iPhone 6/6 +问世以来,我对如何处理背景图像的资产目录感到困惑。

The options are: 选项是:

  • iPhone 1x (320x480) iPhone 1x(320x480)
  • iPhone 2x (640x960) iPhone 2x(640x960)
  • iPhone R4 (640x1136) iPhone R4(640x1136)
  • iPhone 3x (I assume this is 3*(1x), which would be 960x1440) iPhone 3x(我假设这是3 *(1x),这将是960x1440)

What dimensions should I be supplying here, because the resolution of the iPhone 6+ is 1080x1920 , but 3x would be 960x1440 , right? 我应该在这里提供什么尺寸,因为iPhone 6+的分辨率是1080x1920 ,但3x是960x1440 ,对吧?

Image sizes for new iPhone6/6+ are: 新款iPhone6 / 6 +的图像尺寸为:

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

Hope this will help you. 希望这会帮助你。

iPhone6 Plus 2208x1242px | iPhone6 Plus 2208x1242px | 736x414pt | 736x414pt | 1920x1080px | 1920x1080px | 1pt=3px 1点= 3PX

iPhone6 1334x750px | iPhone6 1334x750px | 667x375pt | 667x375pt | 1334x750px | 1334x750px | 1pt=2px 1点= 2px的

iPhone4s 960x640px | iPhone4s 960x640px | 480x320px | 480x320px | 960x640px | 960x640px | 1pt=2px 1点= 2px的

Here for the details 这里有详细信息

First one is resource size, second one is device physical point , the third one is screen size, iPhone6 plus is a little wired because its screen size not equal to resource size, and each resource will shrink 1.15 time to render. 第一个是资源大小,第二个是设备物理点 ,第三个是屏幕大小,iPhone6 plus有点连线,因为它的屏幕大小不等于资源大小,每个资源将缩小1.15时间来渲染。

For your question @3x is based on physicall point of each device. 对于您的问题,@ 3x基于每个设备的物理点。 so iPhone6 @3x should be 736x414px X 3 = 2208x1242px 所以iPhone6 @ 3x应该是736x414px X 3 = 2208x1242px

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM