Pre loader

SciChart to bitmap/png with MVVM

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 would like to create a bitmap/png of the scichart surface.
How can i do this in MVVM?

I saw an example with a “ExportElementToPng(FrameworkElement element, string filename)” function.
This works in Code behind, but in mvvm I don’t have the SciChartSurface.

Thanks…

  • You must to post comments
0
0

Update: Since this is a frequently asked question, we’ve created a tutorial on Render to Bitmap, Screen Capture of Charts & XPS Printing.

http://http://www.scichart.com/screenshots-xps-printing-x-axis-text-labels/

Best regards,
SciChart Support

  • EJansen
    Thanks, This works great. Good tutorial. I still have 2 questions: I'm creating a scichart completely from code, so no view and viewmodel in between. - How can I set the theme? - How can I set the number of major gridlines to a specific number? I'm using the following code to create an xAxis NumericAxis xAxis = new NumericAxis(); xAxis.AutoRange = false; xAxis.DrawLabels = false; xAxis.DrawMajorGridLines = true; xAxis.DrawMinorGridLines = false; xAxis.MajorDelta = 0.004; xAxis.VisibleRange = new DoubleRange(-0.024, 0.024); scs.XAxis = xAxis; I expect 12 gridparts (0.048 / 0.004), but I only see 10? Thanks, Egbert
  • You must to post comments
Showing 1 result
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