Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Taking screen shot of a (remote) web page programmatically

I'm trying to take screen shots of web pages programmatically. I may also require to take screen shots of full or partial page. Is there a way to do this?

like image 752
NLV Avatar asked Mar 14 '11 09:03

NLV


2 Answers

This question seems to cover capturing web pages - including alternatives to WebBrowser.DrawToBitmap. I guess once you've got the full page as an image you can manipulate that to get the partial page shot

like image 181
Jon Egerton Avatar answered Nov 15 '22 15:11

Jon Egerton


Check out webbrowser method

webBrowser1.DrawToBitmap(bitmap, bitmapRect);

for more complete example go here

like image 29
Adrian Serafin Avatar answered Nov 15 '22 15:11

Adrian Serafin