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
windowNamestringName of the window.
onMouseMouseCallbackReference to the function to be called every time mouse event occurs in the specified window.
userDatanint