Login  Register

Which part of the window is visible?

Posted by vischer on Jun 03, 2015; 6:33am
URL: http://imagej.273.s1.nabble.com/Which-part-of-the-window-is-visible-tp5013019.html

I would like to know the visible rectangle of the current window.
I can control this via Image>Zoom>Set.., (i.e. dragging via macro command), but I only want to do it when I am sure that the desired location is outside the visible range - in order to avoid too much jumping.

Is there a macro command like
        getVisibleRect(x, y, w, h),
or perhaps
        getZoom(factor, left, top, w, h)?

Norbert
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html