Table of Contents

Method SetMouseCallback

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

SetMouseCallback(string, MouseCallback, nint)

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

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

Parameters

windowName string

Name of the window.

onMouse MouseCallback

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

userData nint