Login  Register

Filled Background when drawing a string

Posted by Johannes Weissmann on Jun 13, 2011; 12:08pm
URL: http://imagej.273.s1.nabble.com/Filled-Background-when-drawing-a-string-tp3684237.html

Hi,
I was wondering if there is a possiblility to set a background color
when drawing a string using the functions of an image processor.
Currently I am using a line like

ip.drawString(string);

I have to update the text several times and tried to avoid creating a
TextRoi all the time. Does anyone know a quick solution or do I have to
use TextROIs?

Best regards,

Johannes

--
Johannes Weissmann

Nedre Ferstadveg 26 | 7023 Trondheim
mail: [hidden email]
fon: +47 45 124 191

"The truth, as always, will be far stranger." [Sir Arthur C. Clarke]