Cant draw lines

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Cant draw lines

Yoav Rubin-2
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
Reply | Threaded
Open this post in threaded view
|

Re: Cant draw lines

Franz Graf-2
Hi,

Yoav Rubin schrieb:
>   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);

do you have an
image.updateAndDraw();
after the drawRect()?

Regards,
Franz