Agh, egg on my face for not checking the latest source. I was referencing
the browseable API source, which is 1.41k. Sorry for that.
But thanks for pointing it out, so glad to see you read my mind months ago!
-Josh
On Fri, Nov 21, 2008 at 3:56 PM, Wayne Rasband <
[hidden email]> wrote:
> On Nov 21, 2008, at 3:41 PM, Josh D wrote:
>
> Hello,
>> I'm trying to change the size of the selection brush tool in a macro. I
>> haven't had any luck figuring out how to do it. The size seems to be set
>> in
>> ij.gui.Toolbar. There is a public static int getBrushSize, but I see no
>> matching setBrushSize. Is there some other way that I could change the
>> brush
>> size from a macro?
>>
>
> You can set the size of the selection brush tool in a macro using
>
> call("ij.gui.Toolbar.setBrushSize", size);
>
> The Toolbar.setBrushSize() method was added in ImageJ 1.41o.
>
> You can get the current size using
>
> size = call("ij.gui.Toolbar.getBrushSize");
>
> -wayne
>