IDS peak ICV
v1.3.0
Loading...
Searching...
No Matches
ImageWriter.cs
Go to the documentation of this file.
1
using
System.Runtime.InteropServices;
2
using
IDSImaging.Peak.ICV.Backend
;
3
using
IDSImaging.Peak.ICV.Types
;
4
5
namespace
IDSImaging.Peak.ICV.IO
;
6
13
public
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
}
IDSImaging.Peak.ICV.IO.ImageWriter
Provides functionality to write images to files in various supported formats.
Definition
ImageWriter.cs:14
IDSImaging.Peak.ICV.IO.ImageWriter.Write
void Write(string filePath, Image image)
Saves the specified image to a file.
Definition
ImageWriter.cs:87
IDSImaging.Peak.ICV.Types.Image
Constructs an Image from an IImageView Instance.
Definition
Image.cs:18
IDSImaging.Peak.ICV.Backend
Definition
CaptureInformation.cs:4
IDSImaging.Peak.ICV.IO
Definition
CalibrationParametersWriter.cs:5
IDSImaging.Peak.ICV.Types
Definition
BinningFactor.cs:3
peak_icv
IO
ImageWriter.cs
Send mail feedback
Generated on Mon Apr 20 2026 - ©
IDS Imaging Development Systems GmbH