WindowCreateTrackbar Method (String, Int32, Int32, CvTrackbarCallback)
|
Creates the trackbar and attaches it to this window
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic CvTrackbar CreateTrackbar(
string name,
int value,
int max,
CvTrackbarCallback callback
)
Public Function CreateTrackbar (
name As String,
value As Integer,
max As Integer,
callback As CvTrackbarCallback
) As CvTrackbar
public:
CvTrackbar^ CreateTrackbar(
String^ name,
int value,
int max,
CvTrackbarCallback^ callback
)
member CreateTrackbar :
name : string *
value : int *
max : int *
callback : CvTrackbarCallback -> CvTrackbar
function CreateTrackbar(name, value, max, callback);
Parameters
- name
- Type: SystemString
Name of created trackbar. - value
- Type: SystemInt32
The position of the slider - max
- Type: SystemInt32
Maximal position of the slider. Minimal position is always 0. - callback
- Type: OpenCvSharpCvTrackbarCallback
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
See Also