Login  Register

Re: Filled Background when drawing a string

Posted by Gabriel Landini on Jun 13, 2011; 2:22pm
URL: http://imagej.273.s1.nabble.com/Filled-Background-when-drawing-a-string-tp3684237p3684241.html

On Monday 13 Jun 2011 15:06:15 you wrote:
> thanks, I guess I'll have to switch to TextROIs. I wanted to avoid
> creating TextROIs getting the bounding box because I have lots of
> strings per picture and thought that it might slow the plugin down.

For those willing to submit patches (hint hint!), it would be nice to have
logic operators in drawing mode. For instance, if you drew the string with
colour n in XOR mode, then you almost-always see it regardless of the
background colour.
Same for drawing lines and filling.
The nice extra is that when you paint it again exactly in the same place, then
what was drawn in the first instance gets erased and the background restored.

Cheers
Gabriel