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.
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
Annotation
Re: Annotation
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
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
Re: Annotation
Hello Loic,
Thanks for your reply. How can we display its Zorder on an annotation.
Thanks & Regards,
Harry
Thanks for your reply. How can we display its Zorder on an annotation.
Thanks & Regards,
Harry
Re: Annotation
Hello,
Please create a standalone ticket for a new issue.
Thank you for your cooperation.
Regards,
Loïc
Please create a standalone ticket for a new issue.
Thank you for your cooperation.
Regards,
Loïc
Who is online
Users browsing this forum: No registered users and 2 guests