This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, September 9, 2009 1:57:43 AM(UTC)
Groups: Registered
Posts: 6
I created AnnAutomation Object on an image for drawing annotation. The problem is when i rotate the image. The AnnAutomation object cannot follow the image rotate and also the AnnAutomation object size not fit to the image. How can i make it? When i rotate the image and then the AnnAutomation object can follow the image rotate and AnnAutomation object size can cover the image?
#2
Posted
:
Wednesday, September 9, 2009 2:08:43 AM(UTC)
Groups: Registered
Posts: 6
<BLOCKQUOTE><table width="85%"><tr><td class="txt4"><img src="/SupportPortal/CS/Themes/default/images/icon-quote.gif"> <strong>risken wrote:</strong></td></tr><tr><td class="quoteTable"><table width="100%"><tr><td width="100%" valign="top" class="txt4">I created AnnAutomation Object on an image for drawing annotation. The problem is when i rotate the image. The AnnAutomation object cannot follow the image rotate and also the AnnAutomation object size not fit to the image. How can i make it? When i rotate the image and then the AnnAutomation object can follow the image rotate and AnnAutomation object size can cover the image?</td></tr></table></td></tr></table></BLOCKQUOTE>
risken attached the following image(s):
#3
Posted
:
Wednesday, September 9, 2009 3:50:23 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
When you rotate the image, do you rotate the annotation object as well?
Use AnnObject.Rotate() Method to rotate the annotation object.
About Annotation object size, what do you mean by cover the image, what do you use to set the object's size?
In our Annotation demo, you can create an annotation and set its size similar to the image's size.
#4
Posted
:
Thursday, September 10, 2009 12:39:01 AM(UTC)
Groups: Registered
Posts: 6
Is it have any faster way to rotate the annotation object one by one? such as can rotate the container or have any method to rotate the image and annotation at the same time?
#5
Posted
:
Thursday, September 10, 2009 1:15:51 AM(UTC)
Groups: Registered
Posts: 6
Is it AnnAutomation Object support rotate or not?
#6
Posted
:
Thursday, September 10, 2009 3:53:43 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
If you are using our .NET classes, you can put all the annotation objects in an AnnGroupObject Class and rotate this AnnGroupObject along with the image.
For more information, please refer to our .NET help file installed with the toolkit.
#7
Posted
:
Thursday, September 10, 2009 5:44:53 AM(UTC)
Groups: Registered
Posts: 6
how can i add the AnnAutomationObject to AnnGroupObject?
#8
Posted
:
Sunday, September 13, 2009 1:03:28 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
This example moves all the objects from a container into a new group object:
====================
private void AnnGroupObject_AnnGroupObject(AnnContainer container)
{
AnnGroupObject group = new AnnGroupObject();
// move the objects to the group
while(container.Objects.Count > 0)
{
AnnObject obj = container.Objects[0];
container.Objects.RemoveAt(0);
group.Objects.Add(obj);
}
// add the group to the container
container.Objects.Add(group);
}
====================
This example is from the help topic "AnnGroupObject Class" in our .NET help file.
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.