IDS peak ICV v1.3.0
Loading...
Searching...
No Matches
ImageWriter.cs
Go to the documentation of this file.
1using System.Runtime.InteropServices;
4
6
13public class ImageWriter
14{
87 public void Write(string filePath, Image image)
88 {
89 DllHelper.ExecuteAndMapReturnCodes(() =>
90 CInterface.peak_icv_Image_SaveToFile(image._handle, Utils.ToUtf8(filePath)));
91 }
92
93 private static class CInterface
94 {
95 [DllImport(Global.LibraryName, CallingConvention = Global.CallingConvention)]
96 public static extern Backend.Types.peak_icv_status peak_icv_Image_SaveToFile(Image.Handle image_handle,
97 byte[] file_path);
98 }
99}
Provides functionality to write images to files in various supported formats.
void Write(string filePath, Image image)
Saves the specified image to a file.
Constructs an Image from an IImageView Instance.
Definition Image.cs:18