VintaSoft Annotation .NET Plug-in Discussions

Questions, comments and suggestions concerning VintaSoft Annotation .NET Plug-in.

Board index < VintaSoft Imaging < VintaSoft Annotation .NET Plug-in Discussions

We are migrating to new forums engine, no new registration or posting currently available. TIA for your patience.

How to determine if a mouse click ocurred in the img space?



How to determine if a mouse click ocurred in the img space?

Post by leopsc »

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!


Re: How to determine if a mouse click ocurred in the img space?

Post by Alex »

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


Re: How to determine if a mouse click ocurred in the img space?

Post by leopsc »

Thanks a lot!!! It works!


Page 1 from 1: 1