Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Transparent annotations

Can I make a XYRangeAnnotation transparent so that I can see the lines indicating Majordivisions?
0 Kudos
Message 1 of 2
(3,413 Views)

Hello Per Helge,

 

You can do this by assigning your own color to the annotation and specifying an alpha component for the color, similar to the following:

 

/* The first argument to FromArgb allows you to specify the alpha component */

annot.RangeFillColor = Color.FromArgb(150, 132, 195, 195);

 

 

 

NickB

National Instruments 

Message Edited by nickb on 11-21-2008 09:32 AM
0 Kudos
Message 2 of 2
(3,405 Views)