Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How to read the screen size

pacpac
in Questions Posts: 119

I want to scale the screen but I need to see if there is a way to read the size of the screen

Tagged:

Comments

  • dave1707dave1707 Mod
    Posts: 7,312

    The variables WIDTH and HEIGHT give the screen size, but their values don’t change when you use the scale(x,y) function. If you use scale(2,3), then the screen width is WIDTH/2 and the height is HEIGHT/3.

  • Posts: 227

    @pac when the app is launched onto a different device, the variables WIDTH and HEIGHT will automatically become the current width and height dimensions of the screen

  • pacpac
    Posts: 119

    Thanks

Sign In or Register to comment.