Posted by
Michael Schmid on
Dec 06, 2016; 9:03pm
URL: http://imagej.273.s1.nabble.com/Double-clicking-TIFF-opens-ImageJ-but-not-the-image-with-Java-8-tp5017568p5017702.html
On 2016-12-06 11:57, PEARSON Matthew wrote:
> Could someone please remind me how i can set the options such as
> colour, size and transparency for the overlay brush tool within a
> macro.
Hi Matt,
the foreground and background colors used by the Overlay Brush Tool are
those of the color picker; you can set them with the macro calls
setForegroundColor and setBackgroundColor
https://imagej.nih.gov/ij/developer/macro/functions.html#setForegroundColorThe width is in the Preferences. In principle you could use
oBrushWidth=5;
call("ij.Prefs.set", "obrush.width", toString(oBrushWidth));
Unfortunately, this has an effect only if the Overlay Brush has not been
used in the current session yet. Otherwise it will effect the Overlay
brush width after ImageJ is closed and opened. I see nothing better.
Transparency: With the current ImageJ code, I see no way to set this
from a macro.
What you can also try is activating a given overlay and modifying it
after it has been drawn, see
https://imagej.nih.gov/ij/developer/macro/functions.html#Overlay[ As a side note, if it's a new topic, please don't reply to a previous
thread but write a new mail to
[hidden email]. Otherwise the mail
threads will be messed up ]
hth,
Michael
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html