Re: Change default Image scale (when open)
Posted by
Michael Schmid on
Nov 14, 2012; 8:27am
URL: http://imagej.273.s1.nabble.com/Change-default-Image-scale-when-open-tp5000792p5000799.html
Hi Nikolay,
you can write a short plugin that implements ImageListener:
http://rsbweb.nih.gov/ij/developer/source/ij/ImageListener.java.htmlIn the imageOpened(ImagePlus imp) method you can set the scale of the newly opened image.
You can call the plugin in your StartupMacros.txt, in a macro named "AutoRun", then it will be executed automatically when ImageJ starts, and valid for all images opened thereafter.
[I am not sure whether it will also affect an image opened by drag&drop onto the ImageJ icon while ImageJ is not running, but I guess it would also set the scale of that image.]
Michael
________________________________________________________________
On Nov 13, 2012, at 20:40, Nikolay Rogoshchenkov wrote:
> Hello,
>
> Is it possible to change default scale for newly opened images?
>
> Thank you.
>
> --
> Rogoshchenkov Nikolay
>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html