2010-11-21 53 views

回答

3

比率!

new width = (500/1130) * 1280 
new height = (430/2074) * 1024 
2
newX = (500/1130)*1280; 
newY = (430/2074)*1024; 

一般:

newX = (currentX/currentWidth)*newWidth 
newY = (currentY/currentHeight)*newHeight 
+0

感謝名單會嘗試一下,讓你知道 – user514955 2010-11-21 17:50:52

+0

這果然奏效求助GR8感謝名單...現在對關聯經緯度像素的工作,並根據變化放大任何評論? – user514955 2010-11-22 14:37:54

+0

請爲此提出另一個問題。 – Femaref 2010-11-22 16:15:16