# PSurfaceFX.java getRenderScale() and getUIScale() not defined

**URL:** <https://discourse.processing.org/t/psurfacefx-java-getrenderscale-and-getuiscale-not-defined/9450>\
**Category:** Development\
**Created:** [March 19, 2019, 5:45pm UTC](https://discourse.processing.org/t/psurfacefx-java-getrenderscale-and-getuiscale-not-defined/9450 "2019-03-19T17:45:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lightningundies](https://avatars.discourse-cdn.com/v4/letter/l/bc8723/32.png) [@lightningundies](https://discourse.processing.org/u/lightningundies)\
**Post date:** [March 19, 2019, 5:45pm UTC](https://discourse.processing.org/t/psurfacefx-java-getrenderscale-and-getuiscale-not-defined/9450/1 "2019-03-19T17:45:52Z")

</div>

In the Processing source code in PSurfaceFX.java (processing.core.awt.PSurfaceFX.java) around line 250 there are 2 calls to getRenderScale() on an object of type Screen, and 1 call to getUIScale() again on an object of type Screen. However, Eclipse tells me: “The method getRenderScale() is undefined for the type Screen”. Details: jre1.8.0\_201, javaSE-1.8.

I have no idea what I am doing. I am just trying to use the processing functions in my library (for personal use), I don’t know how to build it, I don’t know what the heck and APK is, I don’t know what other information you need, I just want some help

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [March 19, 2019, 5:48pm UTC](https://discourse.processing.org/t/psurfacefx-java-getrenderscale-and-getuiscale-not-defined/9450/2 "2019-03-19T17:48:01Z")

</div>

> [@lightningundies](#):
>
> I am just trying to use the processing functions in my library (for personal use), I don’t know how to build it, I don’t know what the heck and APK is, I don’t know what other information you need, I just want some help

Okay. Start by explaining what you are trying to do. Is this a Java desktop project or an Android project? Did you follow the Processing in Eclipse tutorial to set it up? Where did you get stuck? Can you share your current project, e.g. on github?

[https://processing.org/tutorials/eclipse/](https://processing.org/tutorials/eclipse/)
