TeeChart for ActiveX, COM and ASP
-
Otokon
- Newbie
- Posts: 25
- Joined: Thu Sep 18, 2008 12:00 am
Post
by Otokon » Thu Sep 03, 2009 12:03 pm
Hi,
I would like to change the brightness of a filter I added to a panel back image, how do I go about doing so?
Code: Select all
TChart1.Panel.BackImage.LoadImage(@"C:\logo.jpg");
TChart1.Panel.BackImageInside = true;
TChart1.Panel.BackImage.Mode = TeeChart.EBackImageMode.pbmCenter;
TChart1.Panel.BackImage.Filters.Add(TeeChart.EFilterClass.fcBrightness);
TChart1.Panel.BackImage.Filters.Add(TeeChart.EFilterClass.fcGrayScale);
-
Narcís
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
-
Contact:
Post
by Narcís » Thu Sep 03, 2009 12:47 pm
Hi Otokon,
Yes, you can do this:
Code: Select all
TChart1.Panel.BackImage.Filters.Item(0).asBrightness.Amount = 50
-
Otokon
- Newbie
- Posts: 25
- Joined: Thu Sep 18, 2008 12:00 am
Post
by Otokon » Fri Sep 04, 2009 7:03 am
Hi,
Thank you for the reply. I had to use "get_Item" and not "Item", but its working correctly now.
Code: Select all
TChart1.Panel.BackImage.Filters.get_Item(0).asBrightness.Amount = 35;
Regards
-
Otokon
- Newbie
- Posts: 25
- Joined: Thu Sep 18, 2008 12:00 am
Post
by Otokon » Fri Sep 04, 2009 9:55 am
Hi,
How do I set the series border visibility to true with code?
- teechartborder.png (27.88 KiB) Viewed 11105 times
-
Narcís
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
-
Contact:
Post
by Narcís » Fri Sep 04, 2009 10:02 am
Hi Otokon,
If your series is a Line series try using this:
Code: Select all
axTChart1.Series(0).asLine.LinePen.Visible = true;
Hope this helps!!
-
Otokon
- Newbie
- Posts: 25
- Joined: Thu Sep 18, 2008 12:00 am
Post
by Otokon » Fri Sep 04, 2009 10:23 am
Hi Narcís,
I tried your code, but I'm still not able to set border visibility to true. I'm able to set Outline visibility though.
//works
MyChart.Series(0).asLine.Outline.Visible = true;
//dont work
MyChart.Series(0).asLine.LinePen.Visible = true;
Any suggestions?
-
Narcís
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
-
Contact:
Post
by Narcís » Fri Sep 04, 2009 10:31 am
Hi Otokon,
Try this then:
Code: Select all
axTChart1.Series(0).Pen.Visible = false;
-
Otokon
- Newbie
- Posts: 25
- Joined: Thu Sep 18, 2008 12:00 am
Post
by Otokon » Fri Sep 04, 2009 10:59 am
Hi Narcís,
Sorry man. But it still doesn't work.
-
Narcís
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
-
Contact:
Post
by Narcís » Fri Sep 04, 2009 11:03 am
Hi Otokon,
Can you please attach a simple example project we can run "as-is" to reproduce the problem here?
Thanks in advance.
-
Otokon
- Newbie
- Posts: 25
- Joined: Thu Sep 18, 2008 12:00 am
Post
by Otokon » Fri Sep 04, 2009 11:34 am
Hi Narcís,
The problem was at my side, "TChart1.Series(0).Pen.Visible = true;" does work.
Thanks!!!!