简体   繁体   中英

Capture the Window Screen for few minutes using ASP.net

"Through out the question I just talk only on the client side using asp.net"

My requirement is to "Capture the window screen for few minutes and store it as video of any format."

For example if I want to capture the screen of the window and store in some jpeg or gif format, I can use the system.windows.forms library and can achieve as below code

public void StartCapturing(object sender, EventArgs e)
{

        System.Drawing.Bitmap bitmap = new System.Drawing.Bitmap(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height);
        System.Drawing.Graphics graphics = System.Drawing.Graphics.FromImage(bitmap as System.Drawing.Image);
        graphics.CopyFromScreen(25, 25, 25, 25, bitmap.Size);
        bitmap.Save(@"D:\Raghu\MyScreenshots\myscreenshot3.bmp", System.Drawing.Imaging.ImageFormat.Bmp);
}

So my question is that is there any library that I can include so that it can satisfy my need by adding some code as simple as possible. I have seen some tools like snagit etc., but I could n't get clarity regarding that. Any clarifications are appreciated...

您可能想要尝试查看Selenium来捕获网站快照,请参阅使用Selenium WebDriver截屏

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM