Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Why does Screen.Size.Width not match iPad's resolution?


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Apr 12, 2018 4:40 PM Last Post By: Eli M
Michael Leahy

Posts: 239
Registered: 5/9/07
Why does Screen.Size.Width not match iPad's resolution?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 12, 2018 1:03 PM
Delphi 10.2.3 to iOS

My iPad Mini 2 has a resolution of 2048 x 1536 but my code returns 1024 x 768 for Screen.Size.Width and Height.

Why the difference?
Eli M

Posts: 1,346
Registered: 11/9/13
Re: Why does Screen.Size.Width not match iPad's resolution?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 12, 2018 4:40 PM   in response to: Michael Leahy in response to: Michael Leahy
Multiply your values by the screen scale. Ipad has a screen scale of 2.

http://www.fmxexpress.com/create-device-scaled-screenshots-in-delphi-xe5-firemonkey-on-android-and-ios/
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02