LEADTOOLS Support
Medical
Medical SDK Questions
How to change the default text in Text and TextPointer annotation HTML5 Medical Viewer?
#1
Posted
:
Friday, May 15, 2020 4:59:13 AM(UTC)
Groups: Registered
Posts: 21
Hello, when developing Web Medical Viewer using LeadTools HTML5 Medical SDK, there's default text which is "LEADTOOLS" when drawingText and TextPointer annotation in MedicalViewer Cell(see attached screenshot), is there any function to change the text?
#2
Posted
:
Tuesday, May 19, 2020 9:04:32 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 105
Was thanked: 3 time(s) in 3 post(s)
Hello,
Yes, you can use the objectTemplate property to set the initial annotation object template of the specified AnnAutomationObject.
https://www.leadtools.co...ject-objecttemplate.htmlHere is some sample code:
Code:
//
// Create the object template for it, use the default stroke and fill
//
var textObject: lt.Annotations.Engine.AnnTextObject = new lt.Annotations.Engine.AnnTextObject();
textObject.fill = lt.Annotations.Engine.AnnSolidColorBrush.create(scope.config.backgroundColor);
// Set the default text
textObject.text = "";
textObject.stroke = lt.Annotations.Engine.AnnStroke.create(lt.Annotations.Engine.AnnSolidColorBrush.create(scope.config.borderColor),
lt.LeadLengthD.create(scope.config.borderSize));
automationObject.set_objectTemplate(textObject);
automationObjects.add(automationObject);
The AnnTextObject and the AnnTextPointerObject have text properties. These properties allow you to get or set the text read inside the annotation object. The AnnTextPointerObject inherits the text property from the AnnTextObject.
https://www.leadtools.co.../anntextobject-text.htmlIf you have any further questions about the above process please feel free to reach back out to us.
Thanks
Matt Bresson
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Medical
Medical SDK Questions
How to change the default text in Text and TextPointer annotation HTML5 Medical Viewer?
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.