Cancel draw object

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

Cancel draw object

cespik
Hi all,
does anyone know how to cancel an object (like a rectangle or a line) that you have drawn on an image?

thanks,
Cespik
Reply | Threaded
Open this post in threaded view
|

Re: Cancel draw object

Brandon Hurr
If you're just using the GUI, click once somewhere that is not inside your
selection.

If you're in a macro, I think you could do
run("Select None");

If neither of those work, you'll have to be more specific.

On Thu, Dec 17, 2015 at 1:46 PM, cespik <[hidden email]> wrote:

> Hi all,
> does anyone know how to cancel an object (like a rectangle or a line) that
> you have drawn on an image?
>
> thanks,
> Cespik
>
>
>
> --
> View this message in context:
> http://imagej.1557.x6.nabble.com/Cancel-draw-object-tp5015249.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Cancel draw object

cespik
In reply to this post by cespik
Hi Brandon,
thanks for your reply.

Actually I am writing a Macros where inside a loop I would like to draw a rectangle (drawRect(x, y, width, height) around a particle and then in the next cycle I would like to cancel the same rectangle and draw another rectangle at another position.

I think What you are suggesting will work if I would use the rectangle as a selection but this is not my case.

Thanks once again,
Luca