By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,199 Members | 1,551 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,199 IT Pros & Developers. It's quick & easy.

HotSpot?

P: n/a
Hi all
I want to have hotSpot on my image.
I put some lables on it and when I click image I can know where I select.
it works but if my image zoom in/out I lose positions of lables..
what's your opinion about that??is there a better way to have hotspot??
thanks in advance
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hello

I suppose that your hotspot are defined with their size and position on the
image. If it so, than it's trivial to update size/position if these hotspots
after image zooming. Just use the same factor for hotspots coordinates
recalculation as you used for zooming.

If you need some more ideas and formulas you can look here:
http://www.codeproject.com/cs/media/...04#xx1076304xx
There was a litle bit another case, but the idea is the same - reposition
something after image zooming.

--
With best regards,
Andrew

http://www.codeproject.com/script/pr...asp?id=1181072
"Perspolis" <re*****@hotmail.com> wrote in message
news:eG**************@tk2msftngp13.phx.gbl...
Hi all
I want to have hotSpot on my image.
I put some lables on it and when I click image I can know where I select.
it works but if my image zoom in/out I lose positions of lables..
what's your opinion about that??is there a better way to have hotspot??
thanks in advance

Nov 17 '05 #2

P: n/a
Hello

I suppose that your hotspot are defined with their size and position on the
image. If it so, than it's trivial to update size/position if these hotspots
after image zooming. Just use the same factor for hotspots coordinates
recalculation as you used for zooming.

If you need some more ideas and formulas you can look here:
http://www.codeproject.com/cs/media/...04#xx1076304xx
There was a litle bit another case, but the idea is the same - reposition
something after image zooming.

--
With best regards,
Andrew

http://www.codeproject.com/script/pr...asp?id=1181072
"Perspolis" <re*****@hotmail.com> wrote in message
news:eG**************@tk2msftngp13.phx.gbl...
Hi all
I want to have hotSpot on my image.
I put some lables on it and when I click image I can know where I select.
it works but if my image zoom in/out I lose positions of lables..
what's your opinion about that??is there a better way to have hotspot??
thanks in advance

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.