"selectWindow()" in plugin

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

"selectWindow()" in plugin

Sami Willman
Hi,

I have written a macro, that compares two images.
Now I would like to convert that macro into a plugin and need a piece of
advice..

In macro I can select window with command:
selectWindow("image1.tif");

How can I do this with plugin?

-Sami
Reply | Threaded
Open this post in threaded view
|

Re: "selectWindow()" in plugin

Ben.BigHair
On Oct 9, 2007, at 9:01 AM, Sami Willman wrote:

> Hi,
>
> I have written a macro, that compares two images.
> Now I would like to convert that macro into a plugin and need a  
> piece of
> advice..
>
> In macro I can select window with command:
> selectWindow("image1.tif");
>

Hello,

Try ...

import ij.*;

and...

IJ.selectWindow("image1.tif");

Cheers,
Ben

> How can I do this with plugin?
>
> -Sami

Ben Tupper
[hidden email]

I GoodSearch for Ashwood Waldorf School.

Raise money for your favorite charity or school just by searching the  
Internet with GoodSearch - www.goodsearch.com - powered by Yahoo!