Jump to content
Software FX Community

3D graph doesn't display image in PlotAreaBackground


jamesraynet

Recommended Posts

I have some code to add an image to the PlotAreaBackground:

bitmap = (Bitmap)Properties.Resources.Modified;  // Modified is the image in the Resourceibg = new ImageBackground();ibg.Image = bitmap;ibg.Mode = ImageMode.Watermark;this.chtMain.PlotAreaBackground = ibg;

If the graph is displayed in normal mode, I can see the image. However, if I click on the 3D button on the toolbar to change the graph to 3D, then the image disappears.

Also, when I print the graph using the toolbar print button, the image never get printed (even without 3D mode).

Is it a limitation for ChartFX or there is another way to display image background in 3D graph?

Thank you,James

 

Link to comment
Share on other sites

- Plot area images are not drawn in 3D because the "plot area" becomes a 3D figure.

- By default the background of the chart is not drawn when printing. You can change this behaviour by doing:

chart.Printer.DrawBackground = true

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...