public void fu_ScreenCut(String strFileName)
{
int nWidth, nHeight; //显示器宽度、高度
//获取显示器尺寸
nWidth = Screen.PrimaryScreen.Bounds.Width;
nHeight = Screen.PrimaryScreen.Bounds.Height;
Bitmap bit = new Bitmap(nWidth, nHeight); //实例化一个图像,尺寸大小为主显示器尺寸
Graphics g = Graphics.FromImage(bit);
g.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality;
g.CopyFromScreen(0, 0,0,0 ,new Size(nWidth, nHeight));
bit.Save(strFileName);
}