Hi!
I have a AnnotationViewer and it has an image. How can I determine if a mouse click occured inside of the image space?
I'm using C# in Visual Studio 2008 (Framework 3.5).
Thanks!
How to determine if a mouse click ocurred in the img space?
Moderator: Alex
Re: How to determine if a mouse click ocurred in the img space?
Hello,
You can subscribe to the AnnotationViewer.MouseClick event and analyze the position of the mouse cursor in the image using the AnnotationViewer.PointToImage method.
Please read descriptions of the ImageViewer.PointToImage and ImageViewer.PointToControl methods in the documentation.
Best regards, Alexander
You can subscribe to the AnnotationViewer.MouseClick event and analyze the position of the mouse cursor in the image using the AnnotationViewer.PointToImage method.
Please read descriptions of the ImageViewer.PointToImage and ImageViewer.PointToControl methods in the documentation.
Best regards, Alexander
Re: How to determine if a mouse click ocurred in the img space?
Thanks a lot!!! It works!