ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Set background for my XYChart (C#)
Posted by Tony on Jan-17-2019 19:45
Hi,

I want to use a background for my XYChart as below:
c.setBackground("picture.png");

But the XYChart and picture.png need to be resized by OnSize() function.
How can I resize picture.png?



If it doesn't work.
I will use CDC class to resize picture.png and put in the same location with  my XYChart.

But It has flicker because XYChart is not transparent.
Any ideas to solve it?

thanks for help.


OS: Win7
Type: C# Windows Forms Application

  Re: Set background for my XYChart (C#)
Posted by Peter Kwan on Jan-18-2019 13:22
Hi Tony,

The following thread explains a method to add a background image that resizes to fit the chart.

https://www.chartdir.com/forum/download_thread.php?bn=chartdir_support&thread=1338941103#N1339018966

Hope this can help.

Regards
Peter Kwan