LEADTOOLS Support
Document
Document SDK Questions
How can I identify specific types of annotations?
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, March 18, 2008 8:17:38 AM(UTC)
Groups: Registered
Posts: 4
I am currently using Leadtools v13 OCX along with VB6. I have images that have both the Note and Black Rectangle annotations saved on a wang compatible TIFF. I would like to save a copy of the image without the black retangles while retaining the Note. Is there a way that I can accompllish this?
#2
Posted
:
Tuesday, March 18, 2008 9:40:20 PM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Hello,
You can try to do this by loading the TIFF image (with the Note and black rectangle annotations) and then delete the Black Rectangles.
Then save the Note annotations on a wang compatible TIFF.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#3
Posted
:
Wednesday, March 19, 2008 2:50:28 AM(UTC)
Groups: Registered
Posts: 4
Yes but how would I go about identifying and deleting the black rectangles? Is there some sample code that I could look at?
#4
Posted
:
Wednesday, March 19, 2008 3:11:39 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Hello,
You may try to delete the rectangle annotations as follows:
- Use the AnnEnumerate method to enumerate all annotation objects.
- handle the AnnEnumerate event. This event is fired for each annotation object.
- In the AnnEnumerate event, check the type of the annotation object by using the AnnGetType method. If the type of the annotation object is ANNOBJECT_RECT, delete it.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#5
Posted
:
Wednesday, March 19, 2008 4:46:26 AM(UTC)
Groups: Registered
Posts: 4
Delete it by using the AnnDestroy?
#6
Posted
:
Wednesday, March 19, 2008 5:03:08 AM(UTC)
Groups: Registered
Posts: 4
LEADTOOLS Support
Document
Document SDK Questions
How can I identify specific types of annotations?
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.