How to take a screenshot from a webpage using C # and ASP.NET?

I would like to create dynamic images from the html that I create on a website. I have a code that generates a Trophy PSN card, ab Xbox LIVE Gamer Card, Steam Gamer card and Xfire Gamer card. Each map is placed in its own div and is dynamically created from server-side code. Is there a way to capture a screenshot of a selected div on a web page using C # and ASP.NET?

+3
source share
2 answers

If you need to take a screenshot, you will need to do this on the client side. Thus, you will need to do this using some technical part on the client side, such as javascript, flash, silverlight ... Asp.net runs on the server, so it is excluded.

Here are some links to other related SO questions about taking a screenshot from javascript:

JavaScript code to take a screenshot from a site without using ActiveX

Take a screenshot of a web page with JavaScript?

+2
source

You will need a library or page rendering service. Litmus is one of those services that I have heard of. You can start there.

+1
source

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


All Articles