Positioning a C# panel just bellow an annotation
Positioning a C# panel just bellow an annotation
I have a windows form with a gdviewer. On this gdViewr I am loading a PDF and the user can add annotations.
When the user select one annotation, I would like to position a C# panel just below the annotation selected.
The problem is, I have the annotation rectangle info (left, top, width, right), but they are related to the image and are in inches.
How to get the windows form coordinates related to the annotation?
Thanks
When the user select one annotation, I would like to position a C# panel just below the annotation selected.
The problem is, I have the annotation rectangle info (left, top, width, right), but they are related to the image and are in inches.
How to get the windows form coordinates related to the annotation?
Thanks
Re: Positioning a C# panel just bellow an annotation
Hello,
Just translate the coordinates by using the CoordDocumentInchToViewerPixel() method of the GdViewer control.
Kind regards,
Loïc
Just translate the coordinates by using the CoordDocumentInchToViewerPixel() method of the GdViewer control.
Kind regards,
Loïc
Re: Positioning a C# panel just bellow an annotation
Many thanks. Worked great!
Re: Positioning a C# panel just bellow an annotation
You're very welcome! Thank you for the return.
Cheers,
Loïc
Cheers,
Loïc
Who is online
Users browsing this forum: No registered users and 2 guests