使用 ScreenCapturer.dll

ScreenCapturer: 一个NET 下的截图工具,支持多屏幕下的截图功能,支持全屏或者指定区域截图,说手动或自动截图。

Demo

C# 屏幕截图_Linq

C# 屏幕截图_C# 屏幕截图_02

代码

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ScreenCapturerDemo
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
            ScreenCapturer.Wait.Delay(200);
            ScreenCapturer.ScreenCapturerTool screenCapturer = new ScreenCapturer.ScreenCapturerTool();
            if (screenCapturer.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                Bitmap bmp = (Bitmap)screenCapturer.Image;
                pictureBox1.BackgroundImage = bmp;
            }
            this.Show();
        }
    }
}

 效果

C# 屏幕截图_System_03

C# 屏幕截图_C# 屏幕截图_04

Demo下载