Roi color selection
Posted by ashish ram on Jul 01, 2009; 5:53am
URL: http://imagej.273.s1.nabble.com/Roi-color-selection-tp3691957.html
Hello everyone!!!!
I am a new user of ImageJ and I want to know how the roi cal be filled with
a color.
the part of the code i am using for selection is like the following,
*
ip.setRoi(new OvalRoi(50, 50, 30, 30));
ip.fill();
ip.reset(ip.getMask());
im.updateAndDraw();
IJ.wait(1000);
ip.reset();
im.updateAndDraw(); // redisplay modified imageI
IJ.wait(1000)
*
But everytime the rio is filled by a black colour but i want to fill it with
different colour (say White).
Please let me know how can it be done in a proper way.
Thank you,
Ashish