Table of Contents

Constructor OpenCvSafeHandle

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

OpenCvSafeHandle()

Initializes a new instance of the OpenCvSafeHandle class that owns the handle.

protected OpenCvSafeHandle()

OpenCvSafeHandle(bool)

Initializes a new instance of the OpenCvSafeHandle class.

protected OpenCvSafeHandle(bool ownsHandle)

Parameters

ownsHandle bool

true if this instance owns the handle and should release it on disposal; false for a borrowed (non-owning) wrapper around an existing pointer.

OpenCvSafeHandle(nint, bool)

Initializes a new instance of the OpenCvSafeHandle class with an existing handle.

protected OpenCvSafeHandle(nint existingHandle, bool ownsHandle)

Parameters

existingHandle nint

The pre-existing native pointer to wrap.

ownsHandle bool

true if this instance owns the handle and should release it on disposal; false for a borrowed (non-owning) wrapper.