Login  Register

Re: how to write inside an image

Posted by kiran kumar-2-3 on Aug 18, 2005; 7:59pm
URL: http://imagej.273.s1.nabble.com/how-to-copy-ROI-to-new-image-tp3705016p3705020.html

Thanks for ur reply but how do i write a variable as i need to write radius of the circles which are generated randomly......
 
Regards,
 
Kiran Kumar

Wayne Rasband <[hidden email]> wrote:
>     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().

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com