Login  Register

Cant draw lines

Posted by Yoav Rubin-2 on Aug 29, 2006; 10:59am
URL: http://imagej.273.s1.nabble.com/Cant-draw-lines-tp3701706.html

Hi All
  i'm developing a plugin, that one of the thing it does os drawing lines on the image the user selected from a file selection dialog (that is initated from the plugin). The problem is that the lines are not drawn. I use the following code:
   
  ImagePlus image =getImageOfSelectedFile("select image");
  image.getProcessor().drawRect(10,12,40,50);
   
  the method getImageOfSelectedFile basically opens a file selection dialog and creates an ImagePlus from the selected file.
   
  the values in the drawRect call are random, the real values are calculated in the plugin, i checked them, they are valid.
   
  Thanks in advance, if any additioal info is needed, i'll be happy to provide it
   
  Yoav

 
---------------------------------
Get your email and more, right on the  new Yahoo.com