The image sprite of the canvas is in the middle?

The image sprite is in the middle of the phone screen.
Is there such a program statement?

according to the documentation there are the X and Y coordinates to set...

to find the middle of the phone screen you have to do some math...

X = (width of screen - width of sprite) / 2
Y = (height of screen - height of sprite) / 2


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

Thanks a lot @Taifun as even I had the same doubt, just forgot to ask that.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.