Login  Register

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

Posted by Rasband, Wayne (NIH/NIMH) [E] on Oct 22, 2014; 6:47pm
URL: http://imagej.273.s1.nabble.com/How-to-set-the-Brush-selection-size-in-a-macro-tool-tp5010149p5010154.html

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