Wrapper of HighGUI window
Inheritance Hierarchy
OpenCvSharpDisposableObject
OpenCvSharp.CPlusPlusWindow
Namespace: OpenCvSharp.CPlusPlus
Assembly: OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
The Window type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Window |
Creates a window with a random name
| |
Window(String) |
Creates a window
| |
Window(Mat) |
Creates a window with a random name and a specified image
| |
Window(String, Mat) |
Creates a window
| |
Window(String, WindowMode) |
Creates a window
| |
Window(WindowMode, Mat) |
Creates a window with a specified image and flag
| |
Window(String, WindowMode, Mat) |
Creates a window
|
Properties
Name | Description | |
---|---|---|
AllocatedMemory |
Gets or sets a memory address allocated by AllocMemory.
(Inherited from DisposableObject.) | |
AllocatedMemorySize |
Gets or sets the byte length of the allocated memory
(Inherited from DisposableObject.) | |
Handle |
Gets window handle
| |
HasQt |
Returns true if the library is compiled with Qt
| |
Image |
Gets or sets an image to be shown
| |
IsDisposed |
Gets a value indicating whether this instance has been disposed.
(Inherited from DisposableObject.) | |
IsEnabledDispose |
Gets or sets a value indicating whether you permit disposing this instance.
(Inherited from DisposableObject.) | |
Name |
Gets window name
|
Methods
Name | Description | |
---|---|---|
AllocGCHandle |
Pins the object to be allocated by cvSetData.
(Inherited from DisposableObject.) | |
AllocMemory |
Allocates the specified size of memory.
(Inherited from DisposableObject.) | |
Close |
Destroys this window.
| |
CreateTrackbar(String, CvTrackbarCallback) |
Creates the trackbar and attaches it to this window
| |
CreateTrackbar(String, Int32, Int32, CvTrackbarCallback) |
Creates the trackbar and attaches it to this window
| |
CreateTrackbar2 |
Creates the trackbar and attaches it to this window
| |
DestroyAllWindows |
Destroys all the opened HighGUI windows.
| |
DisplayOverlay |
Display text on the window's image as an overlay for delay milliseconds. This is not editing the image's data. The text is display on the top of the image.
| |
DisplayStatusBar | ||
Dispose |
Releases the resources
(Inherited from DisposableObject.) | |
Dispose(Boolean) |
Clean up any resources being used.
(Overrides DisposableObjectDispose(Boolean).) | |
Equals | (Inherited from Object.) | |
Finalize |
Destructor
(Inherited from DisposableObject.) | |
GetHashCode | (Inherited from Object.) | |
GetProperty |
Get Property of the window
| |
GetType | (Inherited from Object.) | |
GetWindowByName |
Retrieves a created window by name
| |
LoadWindowParameters |
Load parameters of the window.
| |
MemberwiseClone | (Inherited from Object.) | |
Move |
Sets window position
| |
NotifyMemoryPressure |
Notifies the allocated size of memory.
(Inherited from DisposableObject.) | |
Resize |
Sets window size
| |
SaveWindowParameters |
Save parameters of the window.
| |
SetProperty(WindowProperty, WindowPropertyValue) |
Set Property of the window
| |
SetProperty(WindowProperty, Double) |
Set Property of the window
| |
ShowImage |
Shows the image in this window
| |
ShowImages(Mat) | ||
ShowImages(IEnumerableMat, IEnumerableString) | ||
ThrowIfDisposed |
If this object is disposed, then ObjectDisposedException is thrown.
(Inherited from DisposableObject.) | |
ToString | (Inherited from Object.) | |
WaitKey |
Waits for a pressed key
| |
WaitKey(Int32) |
Waits for a pressed key
|
Events
Name | Description | |
---|---|---|
OnMouseCallback |
Event handler to be called every time mouse event occurs in the specified window.
|
Fields
Name | Description | |
---|---|---|
dataHandle |
Gets or sets a handle which allocates using cvSetData.
(Inherited from DisposableObject.) |
See Also