# How to get vision client resolution

**URL:** <https://forum.inductiveautomation.com/t/how-to-get-vision-client-resolution/27328>\
**Category:** Ignition\
**Created:** [August 10, 2019, 8:25am UTC](https://forum.inductiveautomation.com/t/how-to-get-vision-client-resolution/27328 "2019-08-10T08:25:12Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [August 12, 2019, 12:06pm UTC](https://forum.inductiveautomation.com/t/how-to-get-vision-client-resolution/27328/4 "2019-08-12T12:06:54Z")

</div>

Updated. Note this this doesn’t work in Java 8, as it always returns 100% scaling, for some reason. Java 11 seems to be okay. 🤷‍♂️

```python
import java.awt

gd=java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice()
width = gd.getDisplayMode().getWidth()
height = gd.getDisplayMode().getHeight()

dpi = java.awt.Toolkit.getDefaultToolkit().getScreenResolution()

tf = gd.getDefaultConfiguration().getDefaultTransform()

print 'resolution:', width, 'x', height
print 'dpi:', dpi
print 'scaleX:', tf.getScaleX()
print 'scaleY:', tf.getScaleY()
```

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-to-get-vision-client-resolution/27328)._
