Example #1
0
        private static System.Tuple <int, int, int> OSGetPrimaryDisplayInfo()
        {
            var mainScreen = NSScreen.MainScreen;
            var width      = System.Convert.ToInt32(mainScreen.Frame.Width);
            var height     = System.Convert.ToInt32(mainScreen.Frame.Height);
            var depth      = (int)NSGraphics.BitsPerPixelFromDepth(mainScreen.Depth);

            return(new System.Tuple <int, int, int>(width, height, depth));
        }