Re: Cant draw lines
Posted by Franz Graf-2 on
URL: http://imagej.273.s1.nabble.com/Cant-draw-lines-tp3701706p3701707.html
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