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 : Tuesday, March 18, 2008 8:17:38 AM(UTC)
CKistner

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?
 

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, March 18, 2008 9:40:20 PM(UTC)
Maen Hasan

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)
CKistner

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)
Maen Hasan

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)
CKistner

Groups: Registered
Posts: 4


Delete it by using the AnnDestroy?
 
#6 Posted : Wednesday, March 19, 2008 5:03:08 AM(UTC)
CKistner

Groups: Registered
Posts: 4


That did it. Thank you.
 
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.064 seconds.