472,958 Members | 2,441 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 software developers and data experts.

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 2814
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: FSJOSEPH | last post by:
To the Group: Hi all, I am using a java/pdf report engine namely Elixir Report Server. The report server uses JDK 1.4.1 with hotspot server JVM support. My application runs on AIX and the...
4
by: Naresh Agarwal | last post by:
Hi What are the different kinds of JVMs exist and in what respect do they differ. What is the difference between client, server, classic and hotspot jvms? thanks, Naresh
1
by: Mario_5 | last post by:
I made a small application which print some JPanel content: .... disableDoubleBuffering(componentToBePrinted); componentToBePrinted.paint(graphics); enableDoubleBuffering(componentToBePrinted);...
3
by: aurora | last post by:
I have a parser I need to optimize. It has some disk IO and a lot of looping over characters. I used the hotspot profiler to gain insight on optimization options. The methods show up on on the...
2
by: Cindy | last post by:
hi, Can someone tell me what is a hotspot button? Is it done using javascript? Thanks. Regards, Cindy
6
by: cournape | last post by:
Hi there, I have some scientific application written in python. There is a good deal of list processing, but also some "simple" computation such as basic linear algebra involved. I would like to...
1
by: John J. Hughes II | last post by:
Using the Visual C#.Net editor I have created a cursor.cur file as a resource. I would like to be able to set the hotspot. The problem is the "Set Hotspot Tool" is deselected. Anyone have a clue...
0
by: Perspolis | last post by:
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...
1
by: Lespaul36 | last post by:
I have a couple of custom cursors that I loaded as embeded resource and then create a customcursor array. Is there a way to change the hotspot on the cursors. I need one of them to be closer to...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.