Kod:
int ekran_x = Screen.GetBounds(new Point(0, 0)).Width;
int ekran_y = Screen.GetBounds(new Point(0, 0)).Height;
Bitmap screenShot = new Bitmap(ekran_x, ekran_y);
Graphics grp = Graphics.FromImage(screenShot);
grp.CopyFromScreen(0, 0, 0, 0, new Size(ekran_x, ekran_y));
screenShot.Save("d://"+ fileName +".Bmp", ImageFormat.Bmp);
Kodlarını kullandığımda sürekli
Kod:
System.Runtime.InteropServices.ExternalException: 'GDI+ içinde genel bir hata oluştu.'
hatası alıyorum. Aynısının jpg, png halini de denedim aynısı.

