Login  Register

Re: Macro: Zoom in without changing window size (tiled display)

Posted by mattjackson on Jan 29, 2015; 3:27pm
URL: http://imagej.273.s1.nabble.com/Macro-Zoom-in-without-changing-window-size-tiled-display-tp5011359p5011369.html

Thanks so much, Wayne. I didn't know about the setKeyDown function. I'm surprised it doesn't pop up in the macro recorder.

So... Very weird, but the code you posted works perfectly. However, if I exchange the Blob image with my own, it doesn't work. The image still resizes.

selectWindow("Stitched_DAPI.tif");
//run("Blobs (25K)");
makeRectangle(113, 70, 37, 30);
setKeyDown("alt");
run("To Selection");

I've attached the file, "Stitched_DAPI.tif", to help debug this. I tried downloading a fresh version of FIJI and enabling ImageJ2, but the same issue happens. Any ideas?

-Matt