Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
 }