示例#1
0
 private void captureScreen()
 {
     try
     {
         // Call the CaptureAndSave method from the ScreenCapture class
         // And create a temporary file in C:\Temp
         capScreen.CaptureAndSave(@"C:\root\test.png", CaptureMode.Window, ImageFormat.Png);
     }
     catch (Exception e)
     {
         MessageBox.Show(e.Message.ToString());
     }
 }