How to set the "Brush selection" size in a macro tool

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

How to set the "Brush selection" size in a macro tool

ERIC
Hi all,
I would like to have several "Brush Selection Tools" (not the paintBrush
but the "Brush Selection") of different diameter to re-design selections
faster.
Is there a way to set the size of this tool in a macro tool ? Something
like setToolOption ()

Thank you

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: How to set the "Brush selection" size in a macro tool

Rasband, Wayne (NIH/NIMH) [E]
On Oct 22, 2014, at 7:46 AM, Eric Denarier <[hidden email]> wrote:
>
> Hi all,
> I would like to have several "Brush Selection Tools" (not the paintBrush but the "Brush Selection") of different diameter to re-design selections faster.
> Is there a way to set the size of this tool in a macro tool ? Something like setToolOption ()

You can activate the selection brush tool and set its size using this macro code:

    size = 11;  
    setTool("brush");
    call("ij.gui.Toolbar.setBrushSize", size);

-wayne

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: How to set the "Brush selection" size in a macro tool

ERIC
Thank you Wayne and Fabrice,
It works perfectly !!!

Eric Denarier
Grenoble Institut des Neurosciences
Inserm U836
Chemin Fortuné Ferrini
38700 La Tronche
France


Tél :33 (0)4 56 52 05 38
Fax :33 (0)4 56 52 06 57

http://neurosciences.ujf-grenoble.fr/

Le 22/10/2014 20:47, Rasband, Wayne (NIH/NIMH) [E] a écrit :

> On Oct 22, 2014, at 7:46 AM, Eric Denarier <[hidden email]> wrote:
>> Hi all,
>> I would like to have several "Brush Selection Tools" (not the paintBrush but the "Brush Selection") of different diameter to re-design selections faster.
>> Is there a way to set the size of this tool in a macro tool ? Something like setToolOption ()
> You can activate the selection brush tool and set its size using this macro code:
>
>      size = 11;
>      setTool("brush");
>      call("ij.gui.Toolbar.setBrushSize", size);
>
> -wayne
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

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