Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to draw Pixel Perfectly on iPhone 6 Plus?

Given the iPhone 6 Plus is downscaling from 1242x2208 to 1080x1920, and UIKit is doing that, are there other ways of drawing to the screen that permit absolute (pixel perfect) drawing without downscaling?

I imagine, but am not sure, that OpenGL and Metal can draw pixel perfect graphics on iPhone 6 Plus, but don't know how. And am a little confused as to what Core Animation's coordinate systems mean, as I've read elsewhere that it might be able to do pixel perfect drawing, regardless of the Point system.

like image 831
Confused Avatar asked Sep 15 '14 01:09

Confused


People also ask

What is the screen size of the iPhone 6?

The most significant changes to the iPhone 6 and iPhone 6 Plus are its displays; both branded as "Retina HD Display" and "ion-strengthened", the iPhone 6 display is 4.7 inches in size with a 16:9 resolution of 1334x750 (326 ppi, minus one row of pixels), while the iPhone 6 Plus includes a 5.5-inch 1920x1080 (1080p) ...


1 Answers

For UIKit the non-integral scale factor doesn't usually matter. For OpenGL or Metal, use the new UIScreen nativeScale property to optimally determine the size of your framebuffer or drawable.

like image 167
rickster Avatar answered Sep 22 '22 00:09

rickster