C#全屏截图

      Image baseImage = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height);
            Graphics g = Graphics.FromImage(baseImage);
            g.CopyFromScreen(new Point(0, 0), new Point(0, 0), Screen.AllScreens[0].Bounds.Size);
            g.Dispose();
            baseImage.Save("baseImage.jpg", ImageFormat.Jpeg);

posted @ 2013-11-06 11:29  qanholas  阅读(5492)  评论(0编辑  收藏  举报