Page 1 of 1

Area Series - How to load image programatically ?

Posted: Fri Apr 13, 2007 3:08 pm
by 9532967
Hello

I am facing problem with area chart. I want to fill area with specified image. I know it is possible by using TeeChart editor, by specifying image in 'Pattern'. But my problem is, how can I do it programatically ? I wrote following code but it doesn't work.

TChart1.Series(0).FillSampleValues 100
TChart1.Series(0).asArea.Brush.LoadImage "C:\AnyFile.bmp"

Please help me on this as it's very urgent for us.

Posted: Mon Apr 16, 2007 7:14 am
by narcis
Hi Nitin,

That property should be something like this:

Code: Select all

  TChart1.Series(0).asArea.AreaChartBrush.Image.LoadFromFile(filename);
However, this property has been forgotten and we will include it in v7.0.14, which we expect to be ready during this week. Please be aware at this forum for new release announcements.