Page 1 of 1

Panel BackImage Filters

Posted: Thu Sep 03, 2009 12:03 pm
by 15050347
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);

Re: Panel BackImage Filters

Posted: Thu Sep 03, 2009 12:47 pm
by narcis
Hi Otokon,

Yes, you can do this:

Code: Select all

    TChart1.Panel.BackImage.Filters.Item(0).asBrightness.Amount = 50

Re: Panel BackImage Filters

Posted: Fri Sep 04, 2009 7:03 am
by 15050347
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

Re: Panel BackImage Filters

Posted: Fri Sep 04, 2009 9:55 am
by 15050347
Hi,

How do I set the series border visibility to true with code?
teechartborder.png
teechartborder.png (27.88 KiB) Viewed 10972 times

Re: Panel BackImage Filters

Posted: Fri Sep 04, 2009 10:02 am
by narcis
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!!

Re: Panel BackImage Filters

Posted: Fri Sep 04, 2009 10:23 am
by 15050347
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?

Re: Panel BackImage Filters

Posted: Fri Sep 04, 2009 10:31 am
by narcis
Hi Otokon,

Try this then:

Code: Select all

			axTChart1.Series(0).Pen.Visible = false;

Re: Panel BackImage Filters

Posted: Fri Sep 04, 2009 10:59 am
by 15050347
Hi Narcís,

Sorry man. But it still doesn't work.

Re: Panel BackImage Filters

Posted: Fri Sep 04, 2009 11:03 am
by narcis
Hi Otokon,

Can you please attach a simple example project we can run "as-is" to reproduce the problem here?

Thanks in advance.

Re: Panel BackImage Filters

Posted: Fri Sep 04, 2009 11:34 am
by 15050347
Hi Narcís,

The problem was at my side, "TChart1.Series(0).Pen.Visible = true;" does work.

Thanks!!!!