Table of Contents

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

ex Exception

The original exception raised by the native call.

Returns

OpenCvSharpException

An OpenCvSharpException that wraps the original exception.

Exceptions

ArgumentNullException

ex is 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

ex Exception

The original exception raised by the native call.

Exceptions

ArgumentNullException

ex is null.

OpenCvSharpException

Always thrown.