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

0
0

hello

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 ?

Version
5.3
  • You must to post comments
0
0

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 
    encoder.Frames.Add(BitmapFrame.Create(image));
    encoder.Save(fileStream);
}

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,
Andrew

  • 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