I was just wanting to put up a 1280x720 image up on an iPhone, (no problem, right?)
Then I found this table:
WTF???
I used Erel's smiley code to put up the 1280x720 image on my iPhone 6, and the image
spilled off the screen, acting like it was 736 pixels wide.
What is going on with screen size, screen pixels, and scale? How can one find all this info in ones program?
What's the best way to put up a 1280x720 image from a bitmap onto the screen so it
doesn't crop or stretch but fills as much as possible, perhaps No Scaling if the screen "pixel size" is close.
In other words, what B4i function do I call to get the REAL SCREEN PIXEL SIZE and scale factor?
And what is up with the peculiar values for the iPhone 6 Plus (see above)???
That is, there is a difference between "Pixels" and "Phyiscal Pixels"? WTF?
Then I found this table:
B4X:
Device Points Pixels Scale Physical Pixels Physical PPI Size
iPhone X 812x375 2436x1125 3x 2436x1125 458 5.8"
iPhone 6 Plus 736x414 2208x1242 3x 1920x1080 401 5.5"
iPhone 6 667x375 1334x750 2x 1334x750 326 4.7"
iPhone 5 568x320 1136x640 2x 1136x640 326 4.0"
iPhone 4 480x320 960x640 2x 960x640 326 3.5"
iPhone 3GS 480x320 480x320 1x 480x320 163 3.5"
WTF???
I used Erel's smiley code to put up the 1280x720 image on my iPhone 6, and the image
spilled off the screen, acting like it was 736 pixels wide.
What is going on with screen size, screen pixels, and scale? How can one find all this info in ones program?
What's the best way to put up a 1280x720 image from a bitmap onto the screen so it
doesn't crop or stretch but fills as much as possible, perhaps No Scaling if the screen "pixel size" is close.
In other words, what B4i function do I call to get the REAL SCREEN PIXEL SIZE and scale factor?
And what is up with the peculiar values for the iPhone 6 Plus (see above)???
That is, there is a difference between "Pixels" and "Phyiscal Pixels"? WTF?
Last edited: