Can you please tell me what can be the best way to grab a Polar plot I have in my interface with no background colors (on the chart itself as well on the polar area= Completely transparent "white?") so it become Printer friendly when chart goes from the App to Paper.
This was the best I was able to do (still gradient in the polar, and gray in the background).
This is my current code:
I'm storing the original background before copying to the clipboard, then restoring them back.
Code: Select all
_PolarPlotHelper.PolarChart.BeginUpdate();
Color u = _PolarPlotHelper.PolarChart.ChartBackground.Color;
double OP = _PolarPlotHelper.PolarChart.Background.Opacity;
_PolarPlotHelper.PolarChart.ChartBackground.Color = Color.FromArgb(0, 0, 0, 0);
_PolarPlotHelper.PolarChart.Background.Opacity = 0;// Color.FromArgb(0, 0, 0, 0);
_PolarPlotHelper.PolarChart.CopyToClipboard(Arction.Wpf.Charting.ClipboardImageFormat.Png);
_PolarPlotHelper.PolarChart.ChartBackground.Color = u;
_PolarPlotHelper.PolarChart.Background.Opacity = OP;// Color.FromArgb(0, 0, 0, 0);
_PolarPlotHelper.PolarChart.EndUpdate();
Thanks.