Re: how to write inside an image
Posted by Wayne Rasband on Aug 17, 2005; 11:08pm
URL: http://imagej.273.s1.nabble.com/how-to-copy-ROI-to-new-image-tp3705016p3705019.html
> I am writing a plugin in which I created an FFT of an image and
> drawn multiple circular ROI's and now i require to write the radius of
> circles in the FFT image window. I couldnt find out any command which
> does such kind of writing. Can anyone let me know how to proceed.
Something like this should work:
ImageProcessor ip = imp.getProcessor();
ip.drawString("Some text", 20, 20);
imp.updateAndDraw();
where imp is the ImagePlus object corresponding to the FFT image. You
will probably also need to use other ImageProcessor methods such as
setColor() and setFont().