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 : Friday, January 16, 2009 1:15:39 AM(UTC)

roadman  
roadman

Groups: Registered
Posts: 29


I used the rasterImageViewer.Image.RotateViewPerspective to rotate the image in which rasterImageViewer is attached to the AnnAutomationmanger.
automation = new AnnAutomation(annAutomationManager, rasterImageViewer);

I found that the annotations on the rasterImagerViewer does not rotate when the image is rotate. Is it expected?

 

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 : Saturday, January 17, 2009 11:07:51 PM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

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

If you want to rotate the annotation objects with the image, after rotating the image, use the following code to rotate all the annotation objects:
+----+
PointF origin = new PointF(viewer.Image.ImageWidth / 2,
viewer.Image.ImageHeight / 2);

viewer.Image.RotateViewPerspective(angle);

AnnPoint annOrigin = new AnnPoint(origin, AnnUnit.Pixel);

foreach(AnnObject obj in container.Objects)
{
obj.Rotate(angle, annOrigin);
}
+----+

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
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.040 seconds.