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, March 10, 2008 12:03:56 PM(UTC)

rburrow  
rburrow

Groups: Registered
Posts: 15


I have an image with annotations. I let the user draw a region and perform a crop. The user also has annotations which are outside of his crop area. Once the crop is complete, how do I automatically move ALL annotations within the new image bounds? It has to be easier than getting each individual annotation, determining what type of annotation object it is, determining how many points, then getting each point, and resetting each.

I am using VB.net, leadtools 15.0.0.36
 

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 : Wednesday, March 12, 2008 2:11:02 AM(UTC)

Yasir Alani  
Guest

Groups: Guests
Posts: 3,022

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


What do you want to do with the objects exactly?


 


Do you want to resize them all (shrink the whole set) so that the new total size will match the new cropped image bounds?


 


Or do you only want to offset them (move them in the X and Y direction) so that they become within the new bounds?


 


If you only want to move them, what will happen to objects that were smaller than the old size, but larger than the cropped image size?

 
#3 Posted : Friday, March 14, 2008 11:17:14 AM(UTC)

rburrow  
rburrow

Groups: Registered
Posts: 15


Yes, i want to shrink the whole set so that they new total size will match the new croppled image bounds.
 
#4 Posted : Sunday, March 16, 2008 3:41:05 AM(UTC)

Yasir Alani  
Guest

Groups: Guests
Posts: 3,022

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


You can do that in one of 2 ways:


1. Either group all the objects and then call the AnnGroupObject.Scale Method.
2. Or call the Scale method for each object in the AnnContainer.Objects collection.


 


Also, if cropping is not symmetrical, you might also need to call the Translate method in addition to the Scale method.

 
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.063 seconds.