Login  Register

Re: Change default Image scale (when open)

Posted by Jerome Mutterer-3 on Nov 14, 2012; 8:47am
URL: http://imagej.273.s1.nabble.com/Change-default-Image-scale-when-open-tp5000792p5000801.html

Hi Nikolay,
You could try the 'Droplet' plugin. It has a simple interface with which
you can select a macro that is triggered when you drag-and-drop something
on it.
See: http://imagejdocu.tudor.lu/doku.php?id=plugin:utilities:droplet:start
Sincerely,
Jerome.

On 14 November 2012 09:27, Michael Schmid <[hidden email]> wrote:

> Hi Nikolay,
>
> you can write a short plugin that implements ImageListener:
>   http://rsbweb.nih.gov/ij/developer/source/ij/ImageListener.java.html
>
> In 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
>

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