Is it possible to take a screenshot of a web page with ASP.net with C # code and then send it back to the server? In this code, access is only to the local host, but the same source code that does not have access to IIS is CopyFromScreen . What is the reason, is this possible?
Source code example:
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");
vimalkumar G
source
share