capturing an off screen area

From: joseph.inglis (joseph.inglis_at_btclick.com)
Date: 08/20/04


Date: Fri, 20 Aug 2004 22:03:19 +0000 (UTC)

Heres an interesting one and i guess its idea that are needed as opposed to
a direct solution (although one would be welcomed of course).

I want to render a webpage as an image. At the moment this is done using
awebbrowser object and use of BitBlt to capture the screen... Ive done it a
few ways, in both vb and c# and it works well (hurrah).

But this is only useful if the form hosting the webbrowser object is
visible. How can one do this without actually displaying anything on any
screen?

Am open to suggestions... perhaps saving the entire webpage as a file and
converting that way is possible, or perhaps a clever way of drawing to an
offscreen area and capturing from there?

Ultimately this will be a 'silent' service that will accept a url and reply
back with a byte stream of an image representing that page. Im happy about
all of that... just stuck on this issue... any assistance or pointers would
be 'most good'

Tam



Relevant Pages

  • RE: Capture WebPage as any Image format
    ... thing, "DrawToBitmap" method is not from WebBroswer class, but from ... We are working in a web application and we wanted to capture the full ... webpage into an image file. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Captue window.close() event
    ... body unload event, and this helps to recognise whether the close ... What close event do you really want to "capture": the webpage being unloaded or the window being closed? ...
    (comp.lang.javascript)
  • Re: Create thumbnail from webpage
    ... > I need to create a thumbnail image of a webpage to be displayed in the browser. ... > is there a perl module available that has this capability or can this be done ... When you say "we capture a remote webpage" do you mean that you are ...
    (perl.beginners)
  • How to capture image from WebBrowser control?
    ... Browse to the desired webpage in a WebBrowser control ... I can't manage to capture the displayed image from the WebBrowser ... to save as bitmap. ...
    (microsoft.public.dotnet.framework.drawing)