How to draw String on image
Posted by Amol Patil on May 22, 2007; 8:16am
URL: http://imagej.273.s1.nabble.com/How-to-draw-String-on-image-tp3699398.html
Hi ,
I have one application which uses ImageJ library internally to perform image
modification operations.I have implement many operation like
Zoom in zoom out,flip,drawrectangle.
But when I use drawstring() method my program does not terminate and also
does not show excepted output.
If anybody has done it please send me sample code here my sample code which
I am using for this operation.
RankFilters filter = new RankFilters();
Opener open=new Opener();
ImagePlus image=open.openImage(fileName);
ImageProcessor ipr=image.getProcessor();
ipr.setInterpolate(true);
ipr.drawString("Test");
After that I am saving image.
Please check this code Send me correct code.
Thanks in advance