If you can calculate the location of the centre of the circle, and you
get hold of the mouse location in the image mouseOver, then you can
calculate the mouse distance from the centre of the circle. If you know
its radius, then you can work out if you're inside it. This technique
wouldn't work for more complex shapes, but for a circle it would.

V.M. wrote:
> Hello everybody,
>
> I started with GWT two weeks ago and now I stuck.
>
> I have a rectangular image and I want to add a MouseOverEvent to a
> circle which is on the image.
> I thought about getting the pixel color under the mouse but it seems
> that this is not possible.
>
> Is there any way to get the color under the mouse?
> If there is none, how can I add a MouseEvent to a round object on a
> rectangular image?
>
>
> Thanks for your help.
>
>
>   

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to