You could maximize the image window.
ImageWindow win = IJ.getImage().getWindow();
win.setBounds(win.getMaximumBounds());
win.maximize();
This duplicates what happens when the user clicks on the maximize
button.
-wayne
On Jun 12, 2007, at 2:59 AM, Boizeau marielaure wrote:
> Hi,
>
>
>
> I had develop a plugin which loop on folder and permit users, to adjust
> manually images one by one.
>
> Images have the same size, and I would like to have the window's image
> expanded as possible.
>
> I have adapted the plugin Plugin Panel_Window, and use ZooIn
>
> getCanvas().zoomIn(100,100);
>
>
>
> With that function, the size of image change but not the size of the
> window.
>
>
>
> Is there anybody who know what is the function to expand window
> automatically ?
>
> Or anything that can fix it ?
>
>
>
> Thanks for your help.
>
> ML
>
>
>