LEADTOOLS Support
Document
Document SDK Questions
HOW TO: Resize Image and Ruler Annotations Proportionally
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, March 11, 2010 5:29:26 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 764
The AnnObject class has functions for scaling an image (AnnObject.Scale) which you would need to execute to have the annotation stay in its relative location on the image whenever you resize the image. The Ruler object however has additional properties that control its look and feel so simply calling the Scale function will make the pixel size correct, but the tickmarks and length likely won't look right. Attached is a C# 2005 example using LEADTOOLS 16.5's Non-Automated Annotations (you can do the same thing with Automated Annotations) that shows how to proportionally resize the image and ruler annotation.
LEADTOOLS Support
Document
Document SDK Questions
HOW TO: Resize Image and Ruler Annotations Proportionally
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.