| WindowCreateTrackbar Method (String, Int32, Int32, TrackbarCallback) |
Creates the trackbar and attaches it to this window
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public CvTrackbar CreateTrackbar(
string trackbarName,
int initialPos,
int max,
TrackbarCallback callback
)
Public Function CreateTrackbar (
trackbarName As String,
initialPos As Integer,
max As Integer,
callback As TrackbarCallback
) As CvTrackbar
public:
CvTrackbar^ CreateTrackbar(
String^ trackbarName,
int initialPos,
int max,
TrackbarCallback^ callback
)
member CreateTrackbar :
trackbarName : string *
initialPos : int *
max : int *
callback : TrackbarCallback -> CvTrackbar
Parameters
- trackbarName
- Type: SystemString
Name of created trackbar. - initialPos
- Type: SystemInt32
The position of the slider - max
- Type: SystemInt32
Maximal position of the slider. Minimal position is always 0. - callback
- Type: OpenCvSharpTrackbarCallback
the function to be called every time the slider changes the position. This function should be prototyped as void Foo(int);
Return Value
Type:
CvTrackbar[Missing <returns> documentation for "M:OpenCvSharp.Window.CreateTrackbar(System.String,System.Int32,System.Int32,OpenCvSharp.TrackbarCallback)"]
See Also