Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- object1.x = box.x
- object1.y = box.y
- image: 200 x 300 pixels
- box top left: 100, 100 (pixels from top left of image)
- box width height: 20, 60
- device 300 x 400:
- image will be scaled 1.5x in width, 1.333x in height
- so button box should be at (200*1.5*0.5, 300*1.333*0.333)
- with width 20*1.5 and height 60*1.333
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement