How to set the attribute of objects draw on the image

Discussions about annotation support.
Post Reply
lih168
Posts: 3
Joined: Wed Oct 10, 2012 4:07 am

How to set the attribute of objects draw on the image

Post by lih168 » Thu Oct 11, 2012 5:01 am

Hi ,
I have a problem about the gdviewer, how can I edit the attribute of selected object draw on the image, such as set bold of text ,font color. I know the control AnnotationEditor is ok, but what I want is modify via code.
Anyone knows this, thanks in advance

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

Re: How to set the attribute of objects draw on the image

Post by Loïc » Thu Oct 11, 2012 11:47 am

Hello,

To modify annotation by code you have to use the AnnotationManager class. You can create such object using the standard constructor or get the one used by a GdViewer object (for synchronization purpose) by calling the GdViewer.GetAnnotationManager() method.

Let me know if you need a particular code snippet.

With best regards,

Loïc

Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 2 guests