Transparency TeeChart.Styles.Shape

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Markus
Newbie
Newbie
Posts: 23
Joined: Tue Nov 23, 2004 5:00 am
Location: Austria
Contact:

Transparency TeeChart.Styles.Shape

Post by Markus » Wed Apr 05, 2006 5:50 pm

How can I change the transparency value of a shape. To change the transparency of the brush or of the pen do not work.

Thanks for your help, Markus

I am using version 1.1.1864.22788

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Apr 06, 2006 8:28 am

Hi Markus,

You can do something like this:

Code: Select all

      annotation1.Shape.Transparency = 80;
or this:

Code: Select all

      annotation1.Shape.Transparent = true;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Markus
Newbie
Newbie
Posts: 23
Joined: Tue Nov 23, 2004 5:00 am
Location: Austria
Contact:

Post by Markus » Thu Apr 06, 2006 9:01 am

Sorry my question was not clear.

I am talking about the calss: Steema.TeeChart.Styles.Shape

This class does not have a Transparency property.

Thanks in advance.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Apr 06, 2006 11:49 am

Hi Markus,

Yes, you are right. I thought you where speaking about generic TeeCahrt shapes. I've added the issue to our defect list (TF02011355) to be fixed for future releases. In the meantime, the solution is using:

Code: Select all

      shape1.Color = Color.FromArgb(150, 255, 0, 0);
Where the first parameter (alpha) indicates the transparency level.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Markus
Newbie
Newbie
Posts: 23
Joined: Tue Nov 23, 2004 5:00 am
Location: Austria
Contact:

Post by Markus » Fri Apr 07, 2006 9:24 am

Thaks a lot1

Post Reply