Table of Contents

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

trackbarName string

Name of created trackbar.

callback TrackbarCallback

the function to be called every time the slider changes the position. This function should be prototyped as void Foo(int);

Returns

CvTrackbar

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

trackbarName string

Name of created trackbar.

initialPos int

The position of the slider

max int

Maximal position of the slider. Minimal position is always 0.

callback TrackbarCallback

the function to be called every time the slider changes the position. This function should be prototyped as void Foo(int);

Returns

CvTrackbar