This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, August 16, 2005 1:10:09 PM(UTC)
Groups: Registered, Tech Support
Posts: 46
Version: 14Interface: .NETSample Type: SnippetDevelopment Environment: C#.NETKeywords: Annotations annotation flip mirror transform document imaging image mark-upC#.NET code snippet to flip annotations private void FlipImageAndAnnotations(bool horizontal, AnnContainer container, RasterImageViewer viewer)
{
// calculate the origin
AnnPoint origin = new AnnPoint(viewer.Image.ImageWidth / 2, viewer.Image.ImageHeight / 2, AnnUnit.Pixel);
// flip the image
viewer.Image.FlipViewPerspective(horizontal);
// now flip each object around the origin.
float sx = horizontal ? -1 : 1;
float sy = horizontal ? 1 : -1;
foreach(AnnObject obj in container.Objects)
obj.Scale(sx, sy, origin);
}
If you have any questions about this example, please post back here.
Gabriel
Gabe
Developer Support
LEAD Technologies, Inc.
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.