Re: Window and Leveling
Posted by
Wayne Rasband on
Jun 15, 2006; 10:11pm
URL: http://imagej.273.s1.nabble.com/Window-and-Leveling-tp3702480p3702482.html
> Thanks for the reply. It was very helpful. It worked.
> But there is a slight problem. I wrote a macro named it
> as StartupMacros.txt and put that file in the "macros"
> directory. And when I restarted ImageJ it automatically
> installed.
>
> But since I am using ImageJ as an applet, when i embed
> the "ij.jar" for the ImageJ it does not inlcude the
> StartupMacros.txt functionalities. When I load webpage,
> ImageJ starts and opens the Image. But when I pressed
> "1", "2", etc., nothing happened because the Macro was
> not there.
>
> Do you know how to make it work when calling ImageJ as
> Applet ?
ImageJ 1.37i installs the macros in StartupMacros.txt when it is
running as an applet. The applet at
<
http://rsb.info.nih.gov/ij/applet/>, for example, installs the macros
at <
http://rsb.info.nih.gov/ij/applet/StartupMacros.txt>.
-wayne