problem setting roi color
Posted by nicola76b@libero.it on
URL: http://imagej.273.s1.nabble.com/problem-setting-roi-color-tp3701677.html
Hi all,
I'm trying to use IJ api, but ROI does not work at all.
I attach a fragment of my code.
------------------
ImagePlus _imp = new ImagePlus(_pathOrURL);
ImageProcessor _ip = _imp.getProcessor();
_imp.setTitle("test image");
_imp.show();
Roi _roi = new Roi(250,305,300,420);
_roi.setImage(_imp);
_roi.setName("test_roi_use");
_roi.setColor(Color.RED);
_roi.drawPixels();
_imp.updateAndRepaintWindow();
-----------------------------------
roi is correctly display but it is BLACK and NOT RED how it should be..
Where I mistake?
Thanks all, by
Nicola B.