468,272 Members | 1,999 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,272 developers. It's quick & easy.

HotSpot?

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
2 2640
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
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.

Similar topics

2 posts views Thread by FSJOSEPH | last post: by
4 posts views Thread by Naresh Agarwal | last post: by
1 post views Thread by Mario_5 | last post: by
3 posts views Thread by aurora | last post: by
2 posts views Thread by Cindy | last post: by
1 post views Thread by John J. Hughes II | last post: by
reply views Thread by Perspolis | last post: by
1 post views Thread by Lespaul36 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.