public static void ResizeWindow(string winName, int width, int height) { if (String.IsNullOrEmpty(winName)) throw new ArgumentNullException(nameof(winName)); NativeMethods.highgui_resizeWindow(winName, width, height); }