Class Window
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Wrapper of HighGUI window
public sealed class Window : IDisposable
- Inheritance
-
Window
- Implements
- Inherited Members
Constructors
- Window()
Creates a window with a random name
- Window(string, Mat?, WindowFlags)
Creates a window
Properties
- Image
Gets or sets an image to be shown
- IsDisposed
Gets whether this window has already been destroyed.
- Name
Gets window name
Methods
- Close()
Destroys this window.
- CreateTrackbar(string, TrackbarCallback)
Creates the trackbar and attaches it to this window
- CreateTrackbar(string, int, int, TrackbarCallback)
Creates the trackbar and attaches it to this window
- DestroyAllWindows()
Destroys all the opened HighGUI windows.
- Dispose()
Destroys this window.
- GetProperty(WindowPropertyFlags)
Get Property of the window
- GetWindowByName(string)
Retrieves a created window by name
- Move(int, int)
Sets window position
- Resize(int, int)
Sets window size
- SetMouseCallback(MouseCallback, nint)
Sets the callback function for mouse events occuting within the specified window.
- SetProperty(WindowPropertyFlags, double)
Set Property of the window
- ShowImage(Mat?)
Shows the image in this window
- ShowImage(UMat?)
Shows the image in this window
- ShowImages(params (string Title, Mat Image)[])
Shows each of the given (title, image) pairs in its own window. Pairing each title with its image in a single tuple makes a length mismatch between titles and images structurally impossible.
- WaitKey(int)
Waits for a pressed key
- WaitKeyEx(int)
Waits for a pressed key. Similar to #waitKey, but returns full key code. Key code is implementation specific and depends on used backend: QT/GTK/Win32/etc