Programmatically get screenshot of page

Posted by Ender on Stack Overflow See other posts from Stack Overflow or by Ender
Published on 2009-12-30T18:25:53Z Indexed on 2010/03/26 23:23 UTC
Read the original article Hit count: 318

Filed under:
|

I'm writing a specialized crawler and parser for internal use and I require the ability to take a screenshot of a web page in order to check what colours are being used throughout. The program will take in around ten web addresses and will save them as a bitmap image, from there I plan to use LockBits in order to create a list of the five most used colours within the image. To my knowledge it's the easiest way to get the colours used within a web page but if there is an easier way to do it please chime in with your suggestions.

Anyway, I was going to use this program until I saw the price tag. I'm also fairly new to C#, having only used it for a few months. Can anyone provide me with a solution to my problem of taking a screenshot of a web page in order to extract the colour scheme?

© Stack Overflow or respective owner

Related posts about c#

Related posts about screenshot