This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, May 3, 2006 2:41:59 PM(UTC)
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
#2
Posted
:
Thursday, May 4, 2006 4:36:51 AM(UTC)
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)
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)
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.