解决方案 »

  1.   

    一个思路:
    1. 模拟按键PrintScreen。
    2. 从剪切板获取内容。
      

  2.   


            public Bitmap GetScreenBmp(Rectangle rect)
            {
                Bitmap screenBmp = new Bitmap(rect.Width, rect.Height);            using (Graphics g = Graphics.FromImage(screenBmp))
                {
                    g.CopyFromScreen(rect.X, rect.Y, 0, 0, rect.Size);//截屏
                    Cursor.Current.Draw(g, new Rectangle(Cursor.Position.X, Cursor.Position.Y, 33, 33));//画鼠标
                }
                return screenBmp;
            }
      

  3.   


              Bitmap bit = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height);
                Graphics g = Graphics.FromImage(bit);
                g.CopyFromScreen(new Point(0, 0), new Point(0, 0), bit.Size);
                bit.Save("d:\\test.jpg");