Window Class OpenCvSharp Class Library
Wrapper of HighGUI window
Inheritance Hierarchy

SystemObject
  OpenCvSharpDisposableObject
    OpenCvSharp.CPlusPlusWindow

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.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.)
Public propertyHandle
Gets window handle
Public propertyStatic memberHasQt
Returns true if the library is compiled with Qt
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, CvTrackbarCallback)
Creates the trackbar and attaches it to this window
Public methodCreateTrackbar(String, Int32, Int32, CvTrackbarCallback)
Creates the trackbar and attaches it to this window
Public methodCreateTrackbar2
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)
Clean up any resources being used.
(Overrides DisposableObjectDispose(Boolean).)
Public methodEquals (Inherited from Object.)
Protected methodFinalize
Destructor
(Inherited from DisposableObject.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetProperty
Get Property of the window
Public methodGetType (Inherited from Object.)
Public methodStatic memberGetWindowByName
Retrieves a created window by name
Public methodLoadWindowParameters
Load parameters of the window.
Protected methodMemberwiseClone (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 methodSetProperty(WindowProperty, WindowPropertyValue)
Set Property of the window
Public methodSetProperty(WindowProperty, Double)
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 (Inherited from Object.)
Public methodStatic memberWaitKey
Waits for a pressed key
Public methodStatic memberWaitKey(Int32)
Waits for a pressed key
Top
Events

  NameDescription
Public eventOnMouseCallback
Event handler to be called every time mouse event occurs in the specified window.
Top
Fields

  NameDescription
Protected fielddataHandle
Gets or sets a handle which allocates using cvSetData.
(Inherited from DisposableObject.)
Top
See Also

Reference