C# 코드가있는 ASP.net에서 웹 페이지의 스크린 샷을 찍은 다음 다시 서버에 제출할 수 있습니까? 이 코드에서는 로컬 호스트에만 액세스하지만 IIS에 액세스 할 수없는 동일한 소스 코드는 CopyFromScreen 오류가 발생했습니다. 가능한 이유는 무엇입니까?C# 코드가 포함 된 ASP.net을 사용하여 웹 페이지의 스크린 샷을 찍을 수 있습니까?
샘플 소스 코드 :
Bitmap Bitmap;
Graphics Graps;
Bitmap = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height - 110, PixelFormat.Format32bppArgb);
Graps = Graphics.FromImage(Bitmap);
Graps.CopyFromScreen(Screen.PrimaryScreen.Bounds.X, 110, 0, 0, Screen.PrimaryScreen.Bounds.Size, CopyPixelOperation.SourceCopy);
Bitmap.Save(Server.MapPath("~") + "/YourShot.gif");