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 : Wednesday, September 9, 2009 1:57:43 AM(UTC)

risken  
risken

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?
 

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, September 9, 2009 2:08:43 AM(UTC)

risken  
risken

Groups: Registered
Posts: 6


<BLOCKQUOTE><table width="85%"><tr><td class="txt4"><img src="/SupportPortal/CS/Themes/default/images/icon-quote.gif">&nbsp;<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):
rotate problem.JPG
 
#3 Posted : Wednesday, September 9, 2009 3:50:23 AM(UTC)

Basel  
Guest

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)

risken  
risken

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)

risken  
risken

Groups: Registered
Posts: 6


Is it AnnAutomation Object support rotate or not?
 
#6 Posted : Thursday, September 10, 2009 3:53:43 AM(UTC)

Basel  
Guest

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)

risken  
risken

Groups: Registered
Posts: 6


how can i add the AnnAutomationObject to AnnGroupObject?
 
#8 Posted : Sunday, September 13, 2009 1:03:28 AM(UTC)

Basel  
Guest

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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.082 seconds.