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); }
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); }