Posted by
Wayne Rasband on
URL: http://imagej.273.s1.nabble.com/Auto-Scale-Image-View-to-100-tp3693384p3693390.html
On Mar 5, 2009, at 11:06 AM, Cochella Chris wrote:
> Alberto,
>
> Thanks. I am having a hard time getting my head around this.
>
> We are running a web application for expert reviewers of medical
> cases. Thus, as the reviewer enters a new case we need to close prior
> images and open new images.
>
> My first thought is to run ImageJ as an embedded applet (using ImageJA
> for now). However, there seems to be a lot more functionality with
> the Java WebStart (looked at the one here
>
http://rsbweb.nih.gov/ij/applets.html)
>
>
> Does the "autorun macro" work for the applet or Java Webstart? Is
> one better than the other?
Yes, if you add an "AutoRun" macro to StartupMacros.txt. When launched
as an applet, ImageJ looks for StartupMacros.txt in the directory on
the server containing the HTML file with the applet tag. When launched
using Web Start, it looks for StartupMacros.txt in the ImageJ/macros
directory in the users home directory. If not found, it uses the
default version in the macros directory of ij.jar.
> How would I dynamically open/close/open sets of images as a reviewer
> moves from case to case?
This is a programming problem. ImageJ can be customized by writing
plugins, macros of scripts. With applets, custom plugins have to be
added to ij.jar and commands to launch them added to the IJ_Props.txt
file in ij.jar. There is a link at
<
http://rsb.info.nih.gov/ij/applet2/> to an applet version of ImageJ
with custom plugins.
-wayne
>
>
> My apologies if I am a bit dense here...
>
>
> Thanks,
> Chris
>
> >>
> Albert's plugin is built into the ImageJ 1.42k daily build as the
> Image>Zoom>Exact command so you can open an image from a URL at 100%
> using macro code, for example:
>
> open("
http://rsb.info.nih.gov/ij/images/NileBend.jpg");
> run("Exact...", "zoom=100");
> <<
>
>
>
> On Mar 5, 2009, at 8:47 AM, Albert Cardona wrote:
>
>>> I would prefer not to output all the javascript code as the above is
>>> a nice simple solution.
>>>
>>> Are there any attributes I can put in the "param" element and/or the
>>> applet element?
>>
>>
>> Just put, into the autorun macro, a macro that runs the zooming 100%
>> for each open image.
>> I have no idea how that is done for an applet.
>>
>> Albert
>>
>> --
>> Albert Cardona
>>
http://albert.rierol.net>