Method CreateTrackbar
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
CreateTrackbar(string, TrackbarCallback)
Creates the trackbar and attaches it to this window
public CvTrackbar CreateTrackbar(string trackbarName, TrackbarCallback callback)
Parameters
trackbarNamestringName of created trackbar.
callbackTrackbarCallbackthe function to be called every time the slider changes the position. This function should be prototyped as void Foo(int);
Returns
CreateTrackbar(string, int, int, TrackbarCallback)
Creates the trackbar and attaches it to this window
public CvTrackbar CreateTrackbar(string trackbarName, int initialPos, int max, TrackbarCallback callback)
Parameters
trackbarNamestringName of created trackbar.
initialPosintThe position of the slider
maxintMaximal position of the slider. Minimal position is always 0.
callbackTrackbarCallbackthe function to be called every time the slider changes the position. This function should be prototyped as void Foo(int);