Cv. CreateTrackbar2 Method OpenCvSharp Class Library
Creates the trackbar (a.k.a. slider or range control) with the specified name and range, assigns the variable to be syncronized with trackbar position and specifies callback function to be called on trackbar position change. The created trackbar is displayed on top of given window.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static int CreateTrackbar2(
	string trackbarName,
	string windowName,
	int value,
	int count,
	CvTrackbarCallback2 onChange,
	Object userdata
)

Parameters

trackbarName
Type: System.String
Name of created trackbar.
windowName
Type: System.String
Name of the window which will e used as a parent for created trackbar.
value
Type: System.Int32
Initial position of the slider.
count
Type: System.Int32
Maximal position of the slider. Minimal position is always 0.
onChange
Type: OpenCvSharp.CvTrackbarCallback2
Reference to the function to be called every time the slider changes the position. This function should be prototyped as void Foo(int);Can be null if callback is not required.
userdata
Type: System.Object

[Missing <param name="userdata"/> documentation for "M:OpenCvSharp.Cv.CreateTrackbar2(System.String,System.String,System.Int32,System.Int32,OpenCvSharp.CvTrackbarCallback2,System.Object)"]

Return Value

Type: Int32

[Missing <returns> documentation for "M:OpenCvSharp.Cv.CreateTrackbar2(System.String,System.String,System.Int32,System.Int32,OpenCvSharp.CvTrackbarCallback2,System.Object)"]

See Also

Reference