Saving webpage as PNG
Posted on 2009-05-17
I have a requirement in my project to save a PNG from an actual webpage which is opened using a Windows Service. This will be written 100% in C# 3.5 - no actual webpage will be visible to the user since it will be a windows service. For example, if it had a request to take an image of http://www.mydomain.com/ at 300x600, it should make a 300x600 image of the webpage - not compressed, but rather a selection taken from the top left of the webpage at a 1:1 ratio (not reduced in size). The most important part of this is that the website which has been turned into a picture should view this request as any user who is using a normal web browser - not an automated piece of software...
I would like to know if this is possible... I have never done it before and I dont even know where to begin. Do you have any suggestions?