private static extern double cveGetWindowProperty(IntPtr winname, CvEnum.WindowPropertyFlags propId);
private static extern void cveSetWindowProperty(IntPtr name, CvEnum.WindowPropertyFlags propId, double propValue);
/// <summary> /// Provides parameters of a window. /// </summary> /// <param name="name">Name of the window.</param> /// <param name="propId">Window property to retrieve.</param> /// <returns>Value of the window property</returns> public static double GetWindowProperty(String name, CvEnum.WindowPropertyFlags propId) { using (CvString s = new CvString(name)) return(cveGetWindowProperty(s, propId)); }
/// <summary> /// Changes parameters of a window dynamically. /// </summary> /// <param name="name">Name of the window.</param> /// <param name="propId">Window property to edit.</param> /// <param name="propValue">New value of the window property.</param> public static void SetWindowProperty(String name, CvEnum.WindowPropertyFlags propId, double propValue) { using (CvString s = new CvString(name)) cveSetWindowProperty(s, propId, propValue); }