向 iPhone 应用程序添加图形
我很好奇其他人如何为“常规”iPhone 屏幕和具有双倍密度和像素的新 iPhone Retina 屏幕准备图形内容。您是否使图形与新 Retina 屏幕上的像素相匹配,然后保存“大”图片,但将其缩小 50%?
提前致谢。
I am curious of how other prepare graphic content for the "regular" iPhone screen and the new iPhone Retina screen, with double the density and pixels. Do you make the graphic match the pixels on the new Retina screen and then saving the "big" picture but scale it down 50%?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,我们使图形与新 Retina 屏幕上的像素相匹配,然后保存“大”图片,但将其缩小 50%。 :)
Yes, we make the graphic match the pixels on the new Retina screen and then saving the "big" picture but scale it down 50%. :)
我们对正常和视网膜 diiplay 使用单独的图像。例如,我们有名为 img1.png 的图像。我们将为视网膜显示屏创建[email protected](2倍大)并在致电时
[UIImage imageNamed: @"img1.png"] sdk 会自动确定选择哪一张。
We are using separate images for normal and retina diiplays. So for example we have image named img1.png . The for retina display we'll create [email protected] (2x bigger) and when calling the
[UIImage imageNamed: @"img1.png"] sdk would determine automatically which one to take.