c# 获取屏幕图片

Rectangle bounds = Screen.GetBounds(Screen.GetBounds(Point.Empty));
                             using (Bitmap bitmap = new Bitmap(bounds.Width, bounds.Height))
                            {
                                using (Graphics g = Graphics.FromImage(bitmap))
                                {
                                    g.CopyFromScreen(Point.Empty, Point.Empty, bounds.Size);
                                }
                                bitmap.Save(@"c:Capture.jpg", System.Drawing.Imaging.ImageFormat.Jpeg); 
                            }
原文地址:https://www.cnblogs.com/weloglog888/p/6901444.html