Exemplo n.º 1
0
        public static UserScreen[] AllScreens()
        {
            Display[]    all   = User32Util.GetDisplays();
            UserScreen[] rects = new UserScreen[all.Length];

            for (int i = 0; i < rects.Length; i++)
            {
                rects[i] = new UserScreen(all[i].Bounds);
            }

            return(rects);
        }
Exemplo n.º 2
0
        public static Rectangle[] AllScreensRec()
        {
            //return GetSetup_Triple4kHorizontal();
            Display[]   all   = User32Util.GetDisplays();
            Rectangle[] rects = new Rectangle[all.Length];

            for (int i = 0; i < all.Length; i++)
            {
                rects[i] = all[i].Bounds;
            }

            return(rects);
        }
Exemplo n.º 3
0
        public static UserScreen[] AllScreens()
        {
#if WINDOWS
            Display[]    all   = User32Util.GetDisplays();
            UserScreen[] rects = new UserScreen[all.Length];

            for (int i = 0; i < rects.Length; i++)
            {
                rects[i] = new UserScreen(all[i].Bounds);
            }

            return(rects);
#else
            throw new Exception();
#endif
        }