Rectangle bounds = Screen.GetBounds(Point.Empty); Bitmap bitmap = new Bitmap(bounds.Width, bounds.Height); Graphics.FromImage(bitmap).CopyFromScreen(Point.Empty, Point.Empty, bounds.Size); bitmap.Save("plik.jpg", ImageFormat.Jpeg);
Rectangle bounds = Screen.GetBounds(Point.Empty); Bitmap bitmap = new Bitmap(bounds.Width, bounds.Height); Graphics.FromImage(bitmap).CopyFromScreen(Point.Empty, Point.Empty, bounds.Size); bitmap.Save("plik.jpg", ImageFormat.Jpeg);