OpenCvSharp.Cv2.SetWindowProperty C# (CSharp) Method

SetWindowProperty() public static method

Changes parameters of a window dynamically.
public static SetWindowProperty ( string winName, WindowProperty propId, double propValue ) : void
winName string Name of the window.
propId WindowProperty Window property to retrieve.
propValue double New value of the window property.
return void
        public static void SetWindowProperty(string winName, WindowProperty propId, double propValue)
        {
            if (String.IsNullOrEmpty(winName))
                throw new ArgumentNullException(nameof(winName));
            NativeMethods.highgui_setWindowProperty(winName, (int) propId, propValue);
        }

Usage Example

コード例 #1
0
        /// <summary>
        /// ウィンドウのプロパティを設定する
        /// </summary>
        /// <param name="propId">プロパティの種類</param>
        /// <param name="propValue">プロパティに設定する値</param>
#else
        /// <summary>
        /// Set Property of the window
        /// </summary>
        /// <param name="propId">Property identifier</param>
        /// <param name="propValue">New value of the specified property</param>
#endif
        public void SetProperty(WindowProperty propId, double propValue)
        {
            Cv2.SetWindowProperty(name, propId, propValue);
        }
Cv2