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