Beispiel #1
0
 /// <summary>
 /// Changes parameters of a window dynamically.
 /// </summary>
 /// <param name="winName">Name of the window.</param>
 /// <param name="propId">Window property to retrieve.</param>
 /// <param name="propValue">New value of the window property.</param>
 public static void SetWindowProperty(string winName, WindowProperty propId, WindowPropertyValue propValue)
 {
     if (String.IsNullOrEmpty(winName))
     {
         throw new ArgumentNullException(nameof(winName));
     }
     NativeMethods.highgui_setWindowProperty(winName, (int)propId, (double)propValue);
 }
 public static void SetWintermintProperties(IntPtr windowHandle)
 {
   LaunchData.Initialize();
   WindowPropertyValue[] properties = new WindowPropertyValue[3]
   {
     new WindowPropertyValue()
     {
       Key = SystemProperties.System.AppUserModel.ID,
       Value = "astralfoxy.wintermint.client"
     },
     new WindowPropertyValue()
     {
       Key = SystemProperties.System.AppUserModel.RelaunchCommand,
       Value = LaunchData.WintermintRootExecutable
     },
     new WindowPropertyValue()
     {
       Key = SystemProperties.System.AppUserModel.RelaunchDisplayNameResource,
       Value = "Wintermint"
     }
   };
   WindowProperties.SetWindowProperties(windowHandle, properties);
 }
 public static void SetWintermintProperties(IntPtr windowHandle)
 {
     LaunchData.Initialize();
     WindowPropertyValue[] windowPropertyValueArray = new WindowPropertyValue[3];
     WindowPropertyValue windowPropertyValue = new WindowPropertyValue()
     {
         Key = SystemProperties.System.AppUserModel.ID,
         Value = "astralfoxy.wintermint.client"
     };
     windowPropertyValueArray[0] = windowPropertyValue;
     WindowPropertyValue windowPropertyValue1 = new WindowPropertyValue()
     {
         Key = SystemProperties.System.AppUserModel.RelaunchCommand,
         Value = LaunchData.WintermintRootExecutable
     };
     windowPropertyValueArray[1] = windowPropertyValue1;
     WindowPropertyValue windowPropertyValue2 = new WindowPropertyValue()
     {
         Key = SystemProperties.System.AppUserModel.RelaunchDisplayNameResource,
         Value = "Wintermint"
     };
     windowPropertyValueArray[2] = windowPropertyValue2;
     WindowProperties.SetWindowProperties(windowHandle, windowPropertyValueArray);
 }
Beispiel #4
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, WindowPropertyValue propValue)
        {
            Cv2.SetWindowProperty(name, propId, propValue);
        }
Beispiel #5
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, WindowPropertyValue propValue)
        {
            Cv2.SetWindowProperty(name, propId, propValue);
        }
Beispiel #6
0
 /// <summary>
 /// Changes parameters of a window dynamically.
 /// </summary>
 /// <param name="winName">Name of the window.</param>
 /// <param name="propId">Window property to retrieve.</param>
 /// <param name="propValue">New value of the window property.</param>
 public static void SetWindowProperty(string winName, WindowProperty propId, WindowPropertyValue propValue)
 {
     if (String.IsNullOrEmpty(winName))
         throw new ArgumentNullException("winName");
     NativeMethods.highgui_setWindowProperty(winName, (int)propId, (double)propValue);
 }