Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: Keeping annotations the same size on a ZoomToRectangle
Started by leftback at 06-09-2008 8:14. Topic has 3 replies.

Print Search « Previous Thread Next Thread »
  06-09-2008, 8:14
leftback is not online. Last active: 4/10/2008 9:02:37 AM leftback

Top 50 Posts
Joined on 03-14-2008
Posts 35
Keeping annotations the same size on a ZoomToRectangle
Reply Quote
I can imagine you have been asked this before but Im not having much look with searching for a similar post.

What I want to know is can I somehow force annotations to appear to display at the same pensizes/font sizes during a zoom.

I dont want to scale the annotations down as I want to keep the measurments etc but I would like to be able to zoom in on an area that has an annotation inside it and still see the annotation in the same size as it was before I zoomed in (ie not magnified larger by the zoom)

I hope I am expressing this clearly enough that you can understand.

Best Regards

Thanks
   Report 
  06-10-2008, 8:19
Yasir Alani is not online. Last active: 11/16/2008 11:29:23 AM Yasir Alani



Top 10 Posts
Joined on 02-05-2007
Posts 311
Re: Keeping annotations the same size on a ZoomToRectangle
Reply Quote

You should be able to do this using the Fixed property.

 

To demonstrate this, open one of our Annotation demos, create an annotation that contains text. Then right-click on the annotation and select Text Properties > Fixed. In the Text Properties dialog, check the Fixed box in the Fixed tab.

 

When you zoom in or out the image, the annotation size remains the same.


Yasir Alani
LEADTOOLS Technical Support
support@leadtools.com
   Report 
  07-18-2008, 9:41
leftback is not online. Last active: 4/10/2008 9:02:37 AM leftback

Top 50 Posts
Joined on 03-14-2008
Posts 35
Re: Keeping annotations the same size on a ZoomToRectangle
Reply Quote
unfortunately with this approach if i change the raster image size, which i do frequently, the annotations do not appear at the correct position anymore
   Report 
  07-18-2008, 10:08
GregR is not online. Last active: 1/2/2009 9:03:27 AM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,816
Re: Keeping annotations the same size on a ZoomToRectangle
Reply Quote
Is this Vincent?  I believe I've been working with you or someone from your company regarding this problem.  If so, please stick with one medium of communication so that we do not have multiple agents working on the same issue.  This will ensure that you get the most efficient support possible.  If not, then I apologize for the confusion and you can ignore me on that =).

All of the annotations' properties are based in bitmap coordinates.  If you want the text (or other properties not affecting the actual value of the annotation) to be a standard size in client coordinates, you'll have to convert the client values into bitmap values using Transformer.*ToLogical.  

For example, if you want the text to be 18 pixels high in client coordinates, then you need to convert 18 to bitmap coordinates using LenghToLogical, then use that value for the Font.Size.Value property.
Greg Ross
LEADTOOLS Technical Support
   Report 
Post
LEAD Support Fo... » Developer » Annotations » Re: Keeping annotations the same size on a ZoomToRectangle

Powered by Community Server, by Telligent Systems