Re: Convert HTML to image



On Jul 19, 3:57 pm, "Scott Heimendinger [MS]" <scott...@xxxxxxxxxxxxx>
wrote:
I am trying to convert a chunk of well-formed HTML into an image. For the sake of clarity, creating thumbnails of websites is an equivalent problem. I am rendering the HTML inside a WebBrowser control and then using the GDI library to save the rendered contents of the control into a device context (a graphics object). However, this only works when the web browser control is visible on the screen. For my purposes, I'll need this to run as a background process with no visible controls. I've done a lot of searching online, but the only solution I found was in C++. Does anyone know how to achieve this without using 3rd party applications in .NET?

Thanks very much,
Scott

You may find your answer here http://www.codeproject.com/cs/miscctrl/csEXWB.asp.
Look at DrawThumb method.

MH

.