[英]background image size iphone
Normal background image is 320x480 pixels. 普通背景图像为320x480像素。 and for retina is 640x960 pixels. 对于视网膜是640x960像素。
Now i have to put my background image and i have status bar(20) and navigation bar (44). 现在我必须放置我的背景图像,我有状态栏(20)和导航栏(44)。
So i have to reduce 64(20+44) from 480(normal) or from 960(retina)? 所以我必须从480(正常)或960(视网膜)减少64(20 + 44)?
It is confusing me.. this 64(20+44) i reduce from which image type because other one will be exactly half or double of it. 这让我感到困惑..这64(20 + 44)我减少了哪种图像类型,因为其他图像将恰好是它的一半或两倍。
Reduce from the normal size. 减少正常尺寸。
64px = height to remove from normal display. 64px =从正常显示中移除的高度。
128px = height to remove from the retina. 128px =从视网膜上移除的高度。
Don't forget that in the retina display the status bar and nav bar will also be 2x the height :) 不要忘记,在视网膜显示屏中,状态栏和导航栏也将是高度的2倍:)
You do everything based upon the 320x480 size, then retina scales everything up. 你可以根据320x480尺寸做所有事情,然后视网膜可以扩展所有功能。 Using images suffixed @2x will allow you to replace the assets (mainly UIImage) for the retina version, this doesnt work for direct resource file references or video/audio files though so just be careful. 使用后缀为@ 2x的图像将允许您替换视网膜版本的资产(主要是UIImage),这不适用于直接资源文件引用或视频/音频文件,但请注意。
So measure for 320 for all your assets then your retina ones will simply be twice the size 因此,对于您的所有资产,测量320,那么您的视网膜只会是两倍大小
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.