English 中文(简体)
• 改编图像,以重新展示
原标题:iPhone - adapt images to retina display

我有一个问题,就是要更新我的图象,供“Pi”4号“后门”展示。

我将每点决议保留到480×320点。

So I was wondering: suppose I have a 100 x 50 UIImageView. It s better for my actual image I am going to load to be 200 x 100 pixels @ 163 ppi or 100 x 50 pixels @ 326 ppi? Is it the same thing in terms of lightness ? which is the preferred way?

谢意

Lorenzo

最佳回答

(1) 界定你的薪酬 上文所描述的观点是100×50皮克。

2) 拥有一个100x50 pixels“MyImage”的图像文档和第二个200x100 pixels的图像文件,并称其为“MyImage@2x”。

3) 在您的法典中,提到了“MyImage”的形象档案。

本组织将自动选择正确的形象。 在没有再入门的旧装置(即Peter 3GS)上,将使用“MyImage”文档。 关于有“后门”显示的较新装置,将使用“@2x”版本。

问题回答

湿重问题。

由于我不知道 Apple果是如何检查图像的,也许你会装上200x100张图像(用2x像图像@2x.png而不是图像)。

But if you try the other option and do some benchmarks, don t hesitate to tell us the results !

Good Luck

Please correct me if i m wrong, i m not a graphics expert, but this is my understanding of the subject:

PPI - Pixels (or points) Per Inch - it is not a property of the image data, it s a property of the screen (hardware), and you in theory don t really have control over it. In other words, a png file does not describe how many points are to be displayed per inch, it will only describe the color of each pixel.

There is no such thing as an image file s PPI. You should keep the PPI of the target device in mind when deciding the image s resolution, in order for it to appear with the right size on the screen without having to stretch it out in your software and losing sharpness. A 100x100 image displayed on a 1 inch screen with have 100ppi, the same image on a 2 inch screen will be displayed with 50ppi.

So in short: Images don t have PPI s, they have resolutions, and this is what will decide the file s size.





相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签