WindowCreateTrackbar2 Method
|
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 CreateTrackbar2(
string name,
int value,
int max,
CvTrackbarCallback2 callback,
Object userdata
)
Public Function CreateTrackbar2 (
name As String,
value As Integer,
max As Integer,
callback As CvTrackbarCallback2,
userdata As Object
) As CvTrackbar
public:
CvTrackbar^ CreateTrackbar2(
String^ name,
int value,
int max,
CvTrackbarCallback2^ callback,
Object^ userdata
)
member CreateTrackbar2 :
name : string *
value : int *
max : int *
callback : CvTrackbarCallback2 *
userdata : Object -> CvTrackbar
function CreateTrackbar2(name, value, max, callback, userdata);
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: OpenCvSharpCvTrackbarCallback2
the function to be called every time the slider changes the position. This function should be prototyped as void Foo(int); - userdata
- Type: SystemObject
Return Value
Type:
CvTrackbar
See Also