Click or drag to resize

Cv2SetMouseCallback Method

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

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static void SetMouseCallback(
	string windowName,
	MouseCallback onMouse,
	IntPtr userData = null
)

Parameters

windowName
Type: SystemString
Name of the window.
onMouse
Type: OpenCvSharpMouseCallback
Reference to the function to be called every time mouse event occurs in the specified window.
userData (Optional)
Type: SystemIntPtr

[Missing <param name="userData"/> documentation for "M:OpenCvSharp.Cv2.SetMouseCallback(System.String,OpenCvSharp.MouseCallback,System.IntPtr)"]

See Also