Capture a screenshot of a webpage and get an image (ASP.NET)

I perform complex html operations with images (drag and drop), and when I'm done, I need to take a screenshot and get the saved image on the server (virtual directory).

So i need

Image img = CaptureURL("www.a.com/b.aspx"); 

Does anyone know a library that could help me?

thanks

+6
source share
1 answer

One solution is to use the WebBrowser element and render the result in a bitmap.

Here is the complete solution, I think it is simple and quick.

http://pietschsoft.com/post/2008/07/c-generate-webpage-thumbmail-screenshot-image.aspx

Another way is to use IECapt , which is a capture utility that can run on the server, and you can call it from your pages using Process.Start.

here is the second solution.

http://codegod.org/WebAppCodeGod/Screenshot-of-Webpage-with-ASP-NET-AID398.aspx

And there is a javascript way for your user to display the page on the client side and send you an image. Here are some examples here: http://hertzen.com/experiments/jsfeedback/ , and the source code here: <a4>

Hope for this help

+4
source

Source: https://habr.com/ru/post/896983/


All Articles