iPad retina images - Why use two different image sizes?

时间秒杀一切 提交于 2019-12-02 09:45:58

问题


For iPad Retina (or iPhone Retina as well), why do we need to have two types of image sizes and add a suffix like @2x for the retina version?

Can't we just have one type of retina resolution images and for devices that do not have retina display, let the device handle resizing the image to smaller (non-retina) size?


回答1:


Resizing takes time and memory. And resizing while retaining sharpness is hard to do. Which algorithm do you use? Bicubic or bilinear? "But this icon looks better when resized with other-algorithm-here!" How is iOS meant to know that the 1px border you drew is still meant to be a 1px border at half the resolution?



来源:https://stackoverflow.com/questions/12549318/ipad-retina-images-why-use-two-different-image-sizes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!