Compare window: Mouse engine

Ideas for improvements and requests for new features in XnView MP

Moderators: helmut, XnTriq, xnview

Post Reply
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Compare window: Mouse engine

Post by m.Th. »

In the Compare Window when the user pans with the left mouse button all the images pan together. To work with only one image pan with the right mouse button (ie. keep it down and move the image in the view area).

This creates an offset (displacement) between the image which was moved alone, thing which is very useful because usually the photos aren't shot in the exactly same frame, or the subject isn't in the exactly same point.

However, when we try to pan again the images together by using the left button, the offset(s) are reset.

The offset(s) should be reset when the user zooms out.

See FSViewer how it works on zooming, offsets and panning (edge cases etc.)
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
User avatar
JohnFredC
XnThusiast
Posts: 2010
Joined: Wed Mar 17, 2004 8:33 pm
Location: Sarasota Florida

Re: Compare window: Mouse engine

Post by JohnFredC »

Support++

Also, some way to normalize zooming and panning of images of differing resolutions. Sometimes I need to compare a lo-res version to a hi-res version of the same image.
John
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Compare window: Mouse engine

Post by m.Th. »

JohnFredC wrote:Support++

Also, some way to normalize zooming and panning of images of differing resolutions. Sometimes I need to compare a lo-res version to a hi-res version of the same image.
First, IMHO Pierre should write somewhere (on the toolbar with the checkboxes?) or perhaps better put a 'Help' button which shows a message saying something like:

"Use Left mouse button for pan, Wheel for zoom, Ctrl+Wheel for single image zoom, Right button for single image pan."

So, what do you want to do, more or less, is achievable if you have great patience. :)

But I don't know how many people will figure out the key+mouse combinations without someone telling them...


2nd, He needs an array of MAX_VIEWPORTS items (where currently MAX_VIEWPORTS = 4) to hold the X, Y and the Zoom Percentage for each viewport separately.

When the mouse moves with the left button pressed it will pan relatively to the previous coordinates. Take care to trim at the edges for each image separately.
When the wheel rolls it will zoom relatively to the previous zoom percentage. When the zoom for a certain image will be smaller than the "Zoom to Fit" ratio, then reset the separate X, Y, and Zoom Percentage and center the image.

Of course, the implementation details are up to him. We're interested more of the final result. :)
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: Compare window: Mouse engine

Post by oops66 »

..."Use Left mouse button for pan, Wheel for zoom, Ctrl+Wheel for single image zoom, Right button for single image pan."
But I don't know how many people will figure out the key+mouse combinations without someone telling them...
+1 , The shortcut "/" (fit to window) and "*" (100%) should be available too...
XnViewMP Linux X64 - Debian - X64
Post Reply