Click or drag to resize

Window Class

Wrapper of HighGUI window
Inheritance Hierarchy

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public class Window : DisposableObject

The Window type exposes the following members.

Constructors
  NameDescription
Public methodWindow
Creates a window with a random name
Public methodWindow(String)
Creates a window
Public methodWindow(Mat)
Creates a window with a random name and a specified image
Public methodWindow(String, Mat)
Creates a window
Public methodWindow(String, WindowMode)
Creates a window
Public methodWindow(WindowMode, Mat)
Creates a window with a specified image and flag
Public methodWindow(String, WindowMode, Mat)
Creates a window
Top
Properties
  NameDescription
Protected propertyAllocatedMemory
Gets or sets a memory address allocated by AllocMemory.
(Inherited from DisposableObject.)
Protected propertyAllocatedMemorySize
Gets or sets the byte length of the allocated memory
(Inherited from DisposableObject.)
Protected propertyDataHandle
Gets or sets a handle which allocates using cvSetData.
(Inherited from DisposableObject.)
Public propertyImage
Gets or sets an image to be shown
Public propertyIsDisposed
Gets a value indicating whether this instance has been disposed.
(Inherited from DisposableObject.)
Public propertyIsEnabledDispose
Gets or sets a value indicating whether you permit disposing this instance.
(Inherited from DisposableObject.)
Public propertyName
Gets window name
Top
Methods
  NameDescription
Protected methodAllocGCHandle
Pins the object to be allocated by cvSetData.
(Inherited from DisposableObject.)
Protected methodAllocMemory
Allocates the specified size of memory.
(Inherited from DisposableObject.)
Public methodClose
Destroys this window.
Public methodCreateTrackbar(String, TrackbarCallback)
Creates the trackbar and attaches it to this window
Public methodCreateTrackbar(String, Int32, Int32, TrackbarCallback)
Creates the trackbar and attaches it to this window
Public methodStatic memberDestroyAllWindows
Destroys all the opened HighGUI windows.
Public methodDisplayOverlay
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.
Public methodDisplayStatusBar
Public methodDispose
Releases the resources
(Inherited from DisposableObject.)
Protected methodDispose(Boolean)
Releases the resources
(Inherited from DisposableObject.)
Protected methodDisposeManaged
Releases managed resources
(Overrides DisposableObjectDisposeManaged.)
Protected methodDisposeUnmanaged
Releases unmanaged resources
(Inherited from DisposableObject.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Destructor
(Inherited from DisposableObject.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetProperty
Get Property of the window
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberGetWindowByName
Retrieves a created window by name
Public methodLoadWindowParameters
Load parameters of the window.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMove
Sets window position
Protected methodNotifyMemoryPressure
Notifies the allocated size of memory.
(Inherited from DisposableObject.)
Public methodResize
Sets window size
Public methodSaveWindowParameters
Save parameters of the window.
Public methodSetMouseCallback
Sets the callback function for mouse events occuting within the specified window.
Public methodSetProperty
Set Property of the window
Public methodShowImage
Shows the image in this window
Public methodStatic memberShowImages(Mat)
Public methodStatic memberShowImages(IEnumerableMat, IEnumerableString)
Public methodThrowIfDisposed
If this object is disposed, then ObjectDisposedException is thrown.
(Inherited from DisposableObject.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodStatic memberWaitKey
Waits for a pressed key
Public methodStatic memberWaitKeyEx
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
Top
See Also