Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Monday, September 1, 2008 10:30:18 PM(UTC)

roadman  
roadman

Groups: Registered
Posts: 29


Currently, I have a RasterThumbnailBrowser and a RasterImageViewer Object in window form.
When user select a image from the RasterThumbnailBrowser, the corresponding image will be displayed in the RasterImageViewer.
Then, the user draw some annotations (from the Default Tool Bars of AnnAutomationManager) on the image of the viewer. e.g. draw a line annotation.The user then select another image for drawing another annotation. However, the line annotation still exist in the second image.

How can I remove/refresh the annotation?

 

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, September 2, 2008 12:00:57 AM(UTC)

roadman  
roadman

Groups: Registered
Posts: 29


Currently, i have to delete the link of RasterImageViewer and the AnnAutomationManager by disposing the automation object.
 
#3 Posted : Tuesday, September 2, 2008 3:29:31 AM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

Do you want to discard the annotation objects when the image changes, or do you want to keep them associated with the original image on which the user drew them?
 
#4 Posted : Tuesday, September 2, 2008 5:25:23 AM(UTC)

roadman  
roadman

Groups: Registered
Posts: 29


To discard the annotation objects when the image changes
 
#5 Posted : Tuesday, September 2, 2008 7:20:14 AM(UTC)

jigar  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

Let's say you have an AnnAutomation object called annAuto.  If you want to discard all the annotation objects, you can just call annAuto.Container.Objects.Clear().  This will remove all the annotation objects without having to destory/create any resources or objects.
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.071 seconds.