iPhone4/4S High Resolution Image Loading in MobiAccess
If you have been developing native iOS applications, you are probably already familiar with the @2x trick for high resolution image loading.
Basically, when you are positioning elements on the iPhone's screen, you are not positioning to pixels, but to points. Thus, every iOS window has a scale factor. This factor is 2x for iPhone4/4S and 1x for iPhone 3G/3GS.
Although this is an amazing idea, if you look closely at a 320x480 image on the iPhone4, you will see it's pixellated. This is because iPhone4 has a resoultion of 640x960. To solve this problem you need to load a higher resolution image on the iPhone4/4S. This can be done without a single line of code.
If, for example, you have ’mobiaccess.png’ in your project and you are displaying the image in a PictureBox, you can include This e-mail address is being protected from spambots. You need JavaScript enabled to view it in the project and it will automatically get loaded on iPhone4/4S, an almost effortless solution for the issue.
Written by PS





