9internal static class ImageConverterCInterface
11 internal sealed class Handle : SafeHandleZeroOrMinusOneIsInvalid
13 internal Handle() : base(
true)
17 protected override bool ReleaseHandle()
19 return CInterface.peak_icv_Preprocessing_ImageConverter_Destroy(handle) == 0;
23 internal static class CInterface
25 [DllImport(Global.LibraryName, CallingConvention = Global.CallingConvention)]
26 public static extern BackendStatus peak_icv_Preprocessing_ImageConverter_Create(
27 out Handle archiveHandle);
29 [DllImport(Global.LibraryName, CallingConvention = Global.CallingConvention)]
30 public static extern BackendStatus peak_icv_Preprocessing_ImageConverter_Destroy(IntPtr handle);
32 [DllImport(Global.LibraryName, CallingConvention = Global.CallingConvention)]
33 public static extern BackendStatus peak_icv_Preprocessing_ImageConverter_ReleaseBuffers(
36 [DllImport(Global.LibraryName, CallingConvention = Global.CallingConvention)]
37 public static extern BackendStatus peak_icv_Preprocessing_ImageConverter_Convert(
39 Image.Handle inputImageHandle,
41 out
Image.Handle outputImageHandle