Would it be possible to add a background color keyword for the annotate command in the scripting API?
Thanks,
Joleen
annotate background color
Re: annotate background color
Hi Joleen -
I wrote up adding this functionality to annotate as Inquiry 2309. It's possible to add a background color to text added through the Drawing Control Widget in the GUI, so I agree that this would be good to add to scripting.
Thanks for requesting this -
Bob Carp
I wrote up adding this functionality to annotate as Inquiry 2309. It's possible to add a background color to text added through the Drawing Control Widget in the GUI, so I agree that this would be good to add to scripting.
Thanks for requesting this -
Bob Carp
Re: annotate background color
Hi Joleen -
In today's nightly, there's a new keyword in annotate() called 'bgColor'. It is used in the same way as the 'color' keyword. For example, you could run:
And this creates a display of:
If you give this bgColor keyword a try and run into any problems, please let us know.
Thanks -
Bob
In today's nightly, there's a new keyword in annotate() called 'bgColor'. It is used in the same way as the 'color' keyword. For example, you could run:
Code: Select all
activeDisplay().annotate('TEST',line=200,element=300,color='black',bgColor='white',size=60)
And this creates a display of:
If you give this bgColor keyword a try and run into any problems, please let us know.
Thanks -
Bob
Re: annotate background color
Thanks Bob. This looks very useful, I will let you know if I run into any difficulty.
Joleen
Joleen