dimanche 24 février 2019

How to test DP/PT in pixels?

I am testing an app on mobile and tablet and having problems with conversion of PT and DP into pixels. I have to test if some measurements between elements are correct, but I have the documentation in PT for iOS and DP for Android and I measure in Photoshop in pixels or points on the screenshots made on the device.

What would help me to see how many Pt is in photoshop for an Iphone 6 for example. I need to make this conversion for iPAd air, Samsung S6..etc. Does the following formula works: px = dp * (dpi / 160), is that ok?

Thank you :)

Aucun commentaire:

Enregistrer un commentaire