Pre loader

ExportToFile dosent work

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



I have two questions,

First , when I using :

   sciChart.ExportToFile(SaveFileName, Core.ExportType.Jpeg, false,savingImageSize);  

In ContoursView ,this function works well, however in UniformMesh3DChart and SurfaceMeshContours it dosent work.
Only these parameters can be used:

    sciChart.ExportToFile(SaveFileName, Core.ExportType.Jpeg, false);  

as these parameters they dont work either:

    sciChart.ExportToFile(SaveFileName, Core.ExportType.Jpeg, true);  

Second, As “ExporToFile()” function, Can I export to file with ColorMap in UniformMesh3DChart and SurfaceMeshContours ?

  • You must to post comments

Hi Ethan

SciChart3DSurface.ExportToBitmapSource() (no parameters, just the defaults) should work. From there you can save the bitmap to JPEG using this code

using (var fileStream = new FileStream(filePath, FileMode.Create))
    BitmapEncoder encoder = new PngBitmapEncoder(); // Or JPEG Encoder 

The export at size doesn’t work for scichart3dsurface as that requires a render off-screen, which we simple cannot do due to limitations in DirectX. However I think we can make it work at current size (and it should work).

Try the above in the meantime,

Best regards,

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.