Class PInvokeHelper
- Namespace
- OpenCvSharp.Internal.Util
- Assembly
- OpenCvSharp.dll
Provides utility methods for native library (P/Invoke) calls.
public static class PInvokeHelper
- Inheritance
-
PInvokeHelper
- Inherited Members
Methods
CreateException(Exception)
Wraps the specified exception in an OpenCvSharpException and returns it.
public static OpenCvSharpException CreateException(Exception ex)
Parameters
exExceptionThe original exception raised by the native call.
Returns
- OpenCvSharpException
An OpenCvSharpException that wraps the original exception.
Exceptions
- ArgumentNullException
exis null.
DllImportError(Exception)
Wraps an exception that occurred during a DLL import or native call in an OpenCvSharpException and throws it.
public static void DllImportError(Exception ex)
Parameters
exExceptionThe original exception raised by the native call.
Exceptions
- ArgumentNullException
exis null.- OpenCvSharpException
Always thrown.