I looked at this answer for WPF.
https://stackoverflow.com/questions/10231627/convert-pixels-to-cm-in-wpf
Is there a similar option to get the dimensions in mm on Android?
- Aditya Kadambi asked 2 years ago
- You must login to post comments
Found the answer
DisplayMetrics dm = getResources().getDisplayMetrics();
double heightinmm = heightinpixels / dm.ydpi
- Aditya Kadambi answered 2 years ago
- You must login to post comments
Please login first to submit.