annotate background color

Post ideas for new functionality you'd like to see in McIDAS-V or ideas for new tutorials.
Post Reply
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

annotate background color

Post by joleenf »

Would it be possible to add a background color keyword for the annotate command in the scripting API?

Thanks,
Joleen
User avatar
bobc
Posts: 988
Joined: Mon Nov 15, 2010 5:57 pm

Re: annotate background color

Post by bobc »

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
User avatar
bobc
Posts: 988
Joined: Mon Nov 15, 2010 5:57 pm

Re: annotate background color

Post by bobc »

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:

Code: Select all

activeDisplay().annotate('TEST',line=200,element=300,color='black',bgColor='white',size=60)

And this creates a display of:
annotate.jpg

If you give this bgColor keyword a try and run into any problems, please let us know.

Thanks -
Bob
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

Re: annotate background color

Post by joleenf »

Thanks Bob. This looks very useful, I will let you know if I run into any difficulty.

Joleen
Post Reply