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 CreateTrackbar( string trackbarName, string windowName, ref int value, int count, CvTrackbarCallback onChange )
Parameters
- trackbarName
- Type: SystemString
Name of created trackbar. - windowName
- Type: SystemString
Name of the window which will e used as a parent for created trackbar. - value
- Type: SystemInt32
Ref of int value - count
- Type: SystemInt32
Maximal position of the slider. Minimal position is always 0. - onChange
- Type: OpenCvSharpCvTrackbarCallback
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.
Return Value
Type: Int32[Missing <returns> documentation for "M:OpenCvSharp.Cv.CreateTrackbar(System.String,System.String,System.Int32@,System.Int32,OpenCvSharp.CvTrackbarCallback)"]
See Also