This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, March 10, 2008 12:03:56 PM(UTC)
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
#2
Posted
:
Wednesday, March 12, 2008 2:11:02 AM(UTC)
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)
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)
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.