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 ?
- Ethan Zhang asked 5 years ago
- last edited 5 years ago
- You must login 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
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
- Andrew Burnett-Thompson answered 5 years ago
- You must login to post comments
Please login first to submit.