4

I have a 4k display on my laptop, therefore I use windows scaling 200%. Is there a way to get the scaling value of the os in java, so that i can size my graphics appropriately?

Elias Fyksen
  • 879
  • 9
  • 12
  • Take a look at this: http://stackoverflow.com/questions/24190832/android-scaling-my-ui-to-fit-all-screen-sizes – Nick Meyer Apr 14 '17 at 23:05
  • @NickMeyer that's for android... Elias did you ever figure this out? – CamHart Oct 06 '18 at 23:06
  • @CamHart No, I did not find any solution that i pursued, but a quick google now yielded some promising result. You can get the value in c#, here https://stackoverflow.com/questions/32586883/windows-scaling, and using this tutorial https://www.codeproject.com/Articles/378826/How-to-wrap-a-Csharp-library-for-use-in-Java you could probably access it in Java. Unfortunately i do not have a windows machine to test this on, but be sure to let me know how it went if you choose to pursue it :) – Elias Fyksen Oct 08 '18 at 13:24

0 Answers0