Ganesh,
You may be able to delete the last one using Undo.undo(), but it would take
a lot of code to go back farther than that. The circles are destructively
drawn "in" the images, not "over" them in when you "Draw". It looks like
there might be a way to do what you describe within RoiManager using "Show
All" and the "Set Color" button that Wayne added in version 1.39c on Aug. 9.
The programming details are not clear, since is appears that Set Color in
RoiManager has not made it into the Developer Resources yet. You can also
draw non-destructive shapes by following the examples on the Plugins page,
but this would not provide the machinery of RoiManager.
Bob
Robert P. Dougherty, Ph.D.
President, OptiNav, Inc.
Phone (425) 990-5912
Fax (425) 467-1119
www.optinav.com
> -----Original Message-----
> From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of
> Ganesh Jothikumar
> Sent: Saturday, October 06, 2007 2:04 AM
> To:
[hidden email]
> Subject: Deleting Drawn circles
>
> Hi
>
> I am using RioManager.runCommand("Draw"); to draw Ovals in
> different colors. Now I want to delete a particular Oval. How do I can
> delete the ROI by RioManager.runCommand("delete"). But this will not
> delete the drawn circle over the image. How do I delete a circle drawn
> over the image.
>
> Thanks
> ganesh
>
>
> ---------------------------------
> Be a better Heartthrob. Get better relationship answers from someone who
> knows.
> Yahoo! Answers - Check it out.