IDS peak ICV v1.3.0
Loading...
Searching...
No Matches
CalibrationResultWriter.cs
Go to the documentation of this file.
1using System.Runtime.InteropServices;
4
6
13{
27 /* \since IDSImaging.Peak.ICV 1.3 */
28 public void Write(string filePath, CalibrationResult calibrationResult)
29 {
30 var saveOptions = new Backend.Types.peak_icv_calibration_result_save_options();
31 CalibrationResult.Handle handle = calibrationResult._handle;
32 DllHelper.ExecuteAndMapReturnCodes(() =>
33 CInterface.peak_icv_Calibration_Result_SaveToFile(handle, Utils.ToUtf8(filePath), saveOptions));
34 }
35
36 private static class CInterface
37 {
38 [DllImport(Global.LibraryName, CallingConvention = Global.CallingConvention)]
39 public static extern Backend.Types.peak_icv_status peak_icv_Calibration_Result_SaveToFile(
40 CalibrationResult.Handle calibrationResult,
41 byte[] filePath,
42 Backend.Types.peak_icv_calibration_result_save_options options);
43 }
44}
Class for writing a calibration result to file.
void Write(string filePath, CalibrationResult calibrationResult)
Saves calibration result to a JSON file for later use.