percentage position into a device screen.
Monkey Forums/Monkey Beginners/percentage position into a device screen.
| ||
Hi ! I'm searching a formulae to convert classic x, y coordonate to percentage x,y values Example : If DeviceWidth = 800, DeviceHeight = 400 -> x=50%, y=50% convert to x=400,y=200 If DeviceWidth = 600, DeviceHeight = 200 -> x=50%, y=50% convert to x=300,y=100 i'm crap with math ! Many thanks ! |
| ||
it's so easy, just multiply by the percentage the DeviceWidth or DeviceHeight ! |