This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Friday, January 16, 2009 1:15:39 AM(UTC)
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?
#2
Posted
:
Saturday, January 17, 2009 11:07:51 PM(UTC)
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.