Re: Convert HTML to image
- From: mh <mehr13@xxxxxxxxxxx>
- Date: Fri, 20 Jul 2007 03:22:34 -0700
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
.
- References:
- Convert HTML to image
- From: Scott Heimendinger [MS]
- Convert HTML to image
- Prev by Date: Convert HTML to image
- Next by Date: Re: DOM manipulation crashes with IPersistStreamInit
- Previous by thread: Convert HTML to image
- Index(es):