Bitmap image = new Bitmap(
Screen.PrimaryScreen.Bounds.Width,
Screen.PrimaryScreen.Bounds.Height);
Graphics imgGraphics = Graphics.FromImage(image);
imgGraphics.CopyFromScreen(0, 0, 0, 0,
new Size(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height));
image.Save("C:\\a.gif", ImageFormat.Gif);
阅读(675) | 评论(0) | 转发(0) |