SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

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.