Table of Contents

Method SetMouseCallback

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

SetMouseCallback(MouseCallback, nint)

Sets the callback function for mouse events occuting within the specified window.

public void SetMouseCallback(MouseCallback onMouse, nint userData = 0)

Parameters

onMouse MouseCallback

Reference to the function to be called every time mouse event occurs in the specified window.

userData nint