IDS peak ICV v1.3.0
Loading...
Searching...
No Matches
ImageConverterCInterface.cs
Go to the documentation of this file.
1using System.Runtime.InteropServices;
4using Microsoft.Win32.SafeHandles;
5using BackendStatus = IDSImaging.Peak.ICV.Backend.Types.peak_icv_status;
6
8
9internal static class ImageConverterCInterface
10{
11 internal sealed class Handle : SafeHandleZeroOrMinusOneIsInvalid
12 {
13 internal Handle() : base(true)
14 {
15 }
16
17 protected override bool ReleaseHandle()
18 {
19 return CInterface.peak_icv_Preprocessing_ImageConverter_Destroy(handle) == 0;
20 }
21 }
22
23 internal static class CInterface
24 {
25 [DllImport(Global.LibraryName, CallingConvention = Global.CallingConvention)]
26 public static extern BackendStatus peak_icv_Preprocessing_ImageConverter_Create(
27 out Handle archiveHandle);
28
29 [DllImport(Global.LibraryName, CallingConvention = Global.CallingConvention)]
30 public static extern BackendStatus peak_icv_Preprocessing_ImageConverter_Destroy(IntPtr handle);
31
32 [DllImport(Global.LibraryName, CallingConvention = Global.CallingConvention)]
33 public static extern BackendStatus peak_icv_Preprocessing_ImageConverter_ReleaseBuffers(
34 Handle handle);
35
36 [DllImport(Global.LibraryName, CallingConvention = Global.CallingConvention)]
37 public static extern BackendStatus peak_icv_Preprocessing_ImageConverter_Convert(
38 Handle handle,
39 Image.Handle inputImageHandle,
40 PixelFormat pixelFormat,
41 out Image.Handle outputImageHandle
42 );
43 }
44}
IDSImaging.Peak.ICV.Backend.Types.peak_icv_status BackendStatus
Constructs an Image from an IImageView Instance.
Definition Image.cs:18
PixelFormat
Each enumerator represents a specific pixel layout and bit-depth, used for interpreting raw image dat...