想截取客户端屏幕Class1.csusing System;
using System.Drawing;
using System.Drawing.Imaging;
using System.Windows.Forms;namespace WebApplication2
{
    public class Class1
    {
           
        public void img()
        { 
            Image myImage = new Bitmap(600, 600);
            Graphics g = Graphics.FromImage(myImage);
            g.CopyFromScreen(new Point(Cursor.Position.X - 150, Cursor.Position.Y - 25), new Point(0, 0), new Size(600, 600));
            IntPtr dc1 = g.GetHdc();
            g.ReleaseHdc(dc1);
            //this.button1.Image = myImage;
            myImage.Save("c:\\1.bmp");
        }    }
}
Class1 .aspx.cs
....
protected void saveimg()
        {
             Class1 test = new Class1();
            test.img();        }
....