Pre loader

ExportToBitmapSource stackoverflow exception

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

Hello all,

I was trying to export my SciChartSurface to bitmap, to save in a pdf.

First I tried ExportToBitmapSource(true/false, wantedSize) method. It leaded to StackOverflowException.
Then I tried to set explicitly the Height and Width and call the parameterless ExportToBitmapSource() method. It works fine, saves fine, but for a second I see the modified Height and Width and axes.
I tried them sync and async calls too.

Have you ever met these kind of functioning, or is the failure in me?

On my SciChart almost everything has predefined Style. Maybe that’s why the ExportToBitmapSource(true/false, wantedSize) dies while cloning the chart inside?

Version
6.3
  • Andrew Burnett-Thompson
    Hi Laszlo, have you tried the latest version of SciChart (6.5.1?). If the problem still exists there, can you send us code to reproduce a bug and we will investigate?
  • You must to post comments
0
0

Hi László,

I’m writing to inform you that we have recently published the changes improving the ExportToBitmapSource() method usage when XamlRenderSurface is applied. The changes are available in SciChart v6.6.0.26595 and newer.
If this is related to your use case, please upgrade and let us know your feedback.

Here is how to get our nightly builds:
https://support.scichart.com/index.php?/Knowledgebase/Article/View/17232/37/getting-nightly-builds-with-nuget

With best regards,
Lex

  • You must to post comments
0
0

Hi Lex,

my company currently uses 6.3 version, whenever we are going to update, I will check and send feedback.
Thanks for the answer

Best regards,
László

  • You must to post comments
Showing 2 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