CvCreateButton Method (String, CvButtonCallback, Object, ButtonType, Int32) OpenCvSharp Class Library
Create a button on the control panel

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static int CreateButton(
	string name,
	CvButtonCallback callback,
	Object userdata,
	ButtonType buttonType,
	int initialButtonState
)

Parameters

name
Type: SystemString
Name of the button ( if null, the name will be “button <number of boutton>”)
callback
Type: OpenCvSharpCvButtonCallback
Pointer to the function to be called every time the button changed its state.
userdata
Type: SystemObject
object passed to the callback function.
buttonType
Type: OpenCvSharpButtonType
button type
initialButtonState
Type: SystemInt32
Default state of the button. Use for checkbox and radiobox, its value could be 0 or 1.

Return Value

Type: Int32

[Missing <returns> documentation for "M:OpenCvSharp.Cv.CreateButton(System.String,OpenCvSharp.CvButtonCallback,System.Object,OpenCvSharp.ButtonType,System.Int32)"]

See Also

Reference