Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, May 3, 2006 2:41:59 PM(UTC)
achandra

Groups: Registered
Posts: 17


Is there a way to draw annotations programmatically from the code and direcly burn the annotations.

For example: When I load the image, I want to draw AnnText to a specific point and burn it to the image permanently.

Thank you
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, May 4, 2006 4:36:51 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

Hello,

In general, you can draw annotation objects programmatically and burn them into your image.
The details depend on the programming interface that you are using.
However, if you are using the LEADTOOLS .Net programming interface, you can create and burn Text objects as shown below:
+-----------------------+
//Draw AnnTextObject
Dim text As AnnTextObject = New AnnTextObject
text.Text = textString
text.Pen = Nothing
text.Brush = Nothing
text.Font = New AnnFont("Arial", New AnnLength(10, AnnUnit.Point), FontStyle.Regular)
text.EdgeMargin = AnnLength.Empty
text.Alignment = StringAlignment.Center
text.LineAlignment = StringAlignment.Center
text.TextRotate = AnnTextRotate.Rotate0
text.Bounds = New AnnRectangle(100, 200, 400, 600, AnnUnit.Pixel)
//Add the AnnTextObject on the container
container.Objects.Add(text)
// Realize (Burn) annotation objects     
AutomationAnn.Realize()
+-----------------------+

Please let me know if this helps.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#3 Posted : Monday, July 24, 2006 8:25:45 AM(UTC)

skermo  
skermo

Groups: Registered
Posts: 1


How to load The TIF Image into the Annotation Container ?

 
#4 Posted : Tuesday, July 25, 2006 2:39:10 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

Hello,

Do you mean that you want to put the TIFF image on the Annotation container as a stamp object?
What is the programming interface (COM, API, .Net, etc.) that you use?

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.130 seconds.