g.CopyFromScreen(x, y, 0, 0, new System.Drawing.Size(width, height));
}
ScreenshotPath------------保存路径
string hour = DateTime.Now.Minute.ToString();
string second = DateTime.Now.Second.ToString();------------------------取当前时间,作为文文件名
原文地址:http://blog.csdn.net/u014180504/article/details/44835181