Annotation

Discussions about annotation support.
Post Reply
kalpa
Posts: 5
Joined: Tue Jul 17, 2012 10:49 am

Annotation

Post by kalpa » Tue Jul 17, 2012 11:28 am

Hello,

We have processed annotation on an image and saved in XMP file format using GDPicture 9 trail and the saved XMP file is loaded on to the viewer the annotations done on that image can be viewed clearly. But when we take this XMP data into the code, the position of the annotation vary. I have attached screenshot which display the position vary.

Image

Below is following code snippet we used
AnnotationManager annMgr = GdViewer1.GetAnnotationManager();
annMgr.AddRectangleAnnot(Color.Blue, Color.Transparent, (float)2.12374, (float)3.70438, (float)1.10543, (float)0.78893);
annMgr.AddRectangleAnnot(Color.Blue, Color.Transparent, (float)1.22699, (float)5.67875, (float)1.09036, (float)0.78893);
annMgr.SaveAnnotationsToPage();


Is there any way to display the order of the annotations done on image like for example 1,2...

Thanks & Regards,
Harry

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Annotation

Post by Loïc » Tue Jul 17, 2012 11:33 pm

Hello Harry,

Be careful, the coordinates you are using are the one of the center of the annots. Consequently you have to shift the X coordinate by -Width/2, and the Y coordinate by -Height/2.

Kind regards,

Loïc

kalpa
Posts: 5
Joined: Tue Jul 17, 2012 10:49 am

Re: Annotation

Post by kalpa » Wed Jul 18, 2012 7:04 am

Hello Loic,

Thanks for your reply. How can we display its Zorder on an annotation.


Thanks & Regards,
Harry

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Annotation

Post by Loïc » Wed Jul 18, 2012 9:07 am

Hello,

Please create a standalone ticket for a new issue.

Thank you for your cooperation.

Regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests