SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components

0
0

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?

Version
3.0
  • You must to post comments
0
0

Found the answer

DisplayMetrics dm = getResources().getDisplayMetrics();
double heightinmm = heightinpixels / dm.ydpi
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.