Esempio n. 1
0
        private static void CaptureRegion(Rectangle region)
        {
            if (region.IsEmpty)
            {
                return;
            }
            Image screenCap = ScreenCapture.CaptureRegion(region);

            if (Settings.ShowToasts && Settings.ToastCapture)
            {
                Notify("Screenshot Captured");
            }
            PublishScreen(screenCap);
        }
Esempio n. 2
0
        public static void CaptureWindow()
        {
            ScreenCapture.GetWindowRect(ScreenCapture.GetForegroundWindow(), out WindowRect rect);
            if (Settings.GameCapture)
            {
            }
            Bitmap screenCap;

            screenCap = ScreenCapture.CaptureRegion(rect.AsRectange());
            if (Settings.ShowToasts && Settings.ToastCapture)
            {
                Notify("Screenshot Captured");
            }
            PublishScreen(screenCap);
        }