This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, September 1, 2008 10:30:18 PM(UTC)
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?
#2
Posted
:
Tuesday, September 2, 2008 12:00:57 AM(UTC)
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)
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)
Groups: Registered
Posts: 29
To discard the annotation objects when the image changes
#5
Posted
:
Tuesday, September 2, 2008 7:20:14 AM(UTC)
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.