A generic error occurred in GDI+.
Código C++:
Por favor su ayuda Ver original
private void Form1_Load(object sender, EventArgs e) { Rectangle region= Screen.AllScreens[0].Bounds; Bitmap bitmap = new Bitmap(region.Width, region.Height, PixelFormat.Format32bppPArgb); Graphics graphic = Graphics.FromImage(bitmap); graphic.CopyFromScreen(region.Left, region.Top, 0, 0, region.Size); bitmap.Save(@"C:\pantalla.jpg",ImageFormat.Jpeg ); }