in

Data Techniques Online Forums

MouseMove coordinates returned are different when mouse button is down

Last post 07-14-2008 4:31 PM by support. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-11-2008 12:52 PM

    MouseMove coordinates returned are different when mouse button is down

    Using ImageMan.NET  1.53.0.0   dated: 6/10/2008

     

    I'm writing an app where I want to click three points on the ImageMan viewer control to define a (possibly rotated) rectangular region.  I would like to have a visible representation of the rectangular region, which gets updated in the "MouseMove" event on the control while the rectangle is being created with the three mouse clicks. 

     What I am finding is that the MouseMove event returns coordinates in RAW IMAGE PIXELS when the button is not pressed, but returns coordinates in SCALED IMAGE PIXELS when the button is pressed while the move is happening. 

    So, as an example, let's say we have an image of 2000x4000, that is scaled in the viewer so that it shows up as 1000x2000.   In the MouseMove event for the viewer, moving the cursor over the bottom right corner of the image returns (2000, 4000) when the button is not pressed on the mouse, but return (1000, 2000) when the button is pressed.

    Incidentally, the MouseDown and MouseUp events are reporting coordinates the same as the MouseMove with the mouse button pressed.

    Any help would be greatly appreciated!

    Chris Fedde 

  • 07-14-2008 4:31 PM In reply to

    Re: MouseMove coordinates returned are different when mouse button is down

    Hi Chris,

    We are looking into this and should have an update for you shortly. 

    Sean
    Data Techniques Online Support
Page 1 of 1 (2 items)
Copyright 2007 Data Techniques, Inc. All Rights Reserved.