I’m working on app that needs user interaction to locate some points in image. because the image apear smaller in the app , I need to transform the points locations to a larger image. so I need the math to do so. to transform points to a larger image.
Share
smaller image dimensions:
Ws x Hsbigger image dimensions:
Wb x Hbuser taps smaller image at
(Xs,Ys)appropriate point on the bigger image
(Xb,Yb)would be:And for the other way around: