Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, June 15, 2021 3:57:40 AM(UTC)

AmauryL  
AmauryL

Groups: Registered
Posts: 2


Hi there,

I am building a WPF application using Leadtools and I would like to be able to detect when the mouse is moving and retrieve the coordinates. Subscribing to the ImageViewer.MouseMove allows to get a callback every time the mouse moves over the image viewer but the problem is that the image does not take all the viewer space so I am unable to get the right coordinates. I have seen the AnnAutomation.SetCursor event which does trigger when over the RasterImage but the problem is that it is called only when entering the image regions not when moving inside the region.

Is there anything you could recommend to achieve this behavior?

Thank you
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, June 15, 2021 7:01:28 AM(UTC)
Christopher

Groups: Registered, Tech Support, Administrators
Posts: 89

Was thanked: 4 time(s) in 4 post(s)

In the LEADTOOLS21 file folder we have an example demo that can show you how to return the coordinates as you move through the viewer.

This demo is designed to show the difference between the viewer and the SVG coordinates but will still serve as an excellent working example of how to achieve this.

Precompiled Demo
C:\LEADTOOLS21\Shortcuts\Viewers and Display\.NET Framework Class Libraries\SVG

Project Location
C:\LEADTOOLS21\Examples\DotNet\CS\SVGDemo

coordinates.png
Chris Thompson
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
#3 Posted : Tuesday, June 15, 2021 11:25:50 AM(UTC)

AmauryL  
AmauryL

Groups: Registered
Posts: 2


I confirm that using the `ConvertPoint` function on the image viewer gets me the right coordinates.

Thank you.
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.087 seconds.