public void ScreenShot()
 {
     if (Keyboard.IsKeyDown(Key.PrintScreen) && Properties.Settings.Default.ScreenCheck == true)
     {
         POINT startV;
         POINT endV;
         startV.x    = 0;
         startV.y    = 0;
         endV.x      = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width;
         endV.y      = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height;
         _screenSave = new ScreenshotSave();
         _screenSave.CaptureMyScreen(startV, endV);
     }
 }
示例#2
0
 public void snippingTool(POINT startV, POINT endV)
 {
     MouseHook.stop();
     _screenSave = new ScreenshotSave();
     _screenSave.CaptureMyScreen(startV, endV);
 }