Pre loader

ChartSurface.ExportToFile() after changing theme

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

hi,
I am using ExpressionDark theme for my scichart surface.
I want to do ExportToFile after changing theme to BrightSpark.
When I do exporttofile after change the theme to BrightSpark, my exported image is still in ExpressionDark.

I do it like below.

ThemeManager.SetTheme(Chart, “BrightSpark”);
var tempFileName = Path.GetTempFileName();
Chart.ExportToFile(tempFileName, ExportType.Png);
var i = Image.FromFile(tempFileName);

Can some one help please?

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies