![]() |
Showimg, calculating positons after changeimgzoom
Hello,
If i put an image on the screen at 0,0 pixels using ShowImg() then use changeimgzoom to make it bigger or smaller, findimg(num).x and findimg(num).y are still 0 even though the top left hand corner of the image is no longer at 0,0. I'm trying to overlay another image and keep it in the same place even if the bottom image gets resized. Is there a way to find out the actual location of the top left pixel after it's been resized? The problem occurs because it resizes around the centre of the image. Not the corner of it. Thanks. |
It's fairly simple math. A zoom factor of 2 makes the image twice as big. A zoom factor of 0.5 makes the image half the size. Surely you can work it out from there.
|
| All times are GMT +2. The time now is 11:11 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.