Drawing Text Rois

Posted by Greg on
URL: http://imagej.273.s1.nabble.com/Drawing-Text-Rois-tp5013813.html

Hi,

I want to draw some text on an image. Right now I do:

TR = TextRoi(0,0,'text')
TR.setStrokeColor(Color.white);
TR.setNonScalable(True);
TR.drawPixels(ip)

where ip is of type ShortProcessor. First of all, the text gets displayed in black, which is bad because we have a dark background. I also tried ip.drawRoi(TR), the text color just wont change. So how do I display 'text' in white ?

Secondly, I actually try to annotate little image crops which are only 80x80 in pixel size. Is there a way to have a better resolution for the displayed text as the ImageProcessor natively has? The annotation looks pretty 80's style right now..

Regards,
Greg