AFAIK, there is no straightforward way to render the page to a bitmap. It may be possible to change the existing printing code which prints to a printer HDC and make it print to a bitmap HDC. Alternatively, it may be possible to get the view manager to paint into your own rendering context object by hacking the document viewer or the presshell object a bit. The people in netscape.public.mozilla.layout could tell you the best way to go about this. If you need something more than just the bitmap, as you're talking about capturing mouse movement etc., then you are looking at more substantial effort, probably involving writing your own rendering and device context classes and maybe new widgets too. As you mentioned VR in an earlier post, perhaps it would be feasible to implement the graphics classes on top of OpenGL.. Adam Conrad Tse wrote: > I am curious as to how long it would take and how difficult it would be > to integrate Gecko into a nother application. What I need is an image > (bitmap,jpeg,....)of the browser contents, a mechanism to query for the > coordinated representing the links in the page and a method to specify > the > mouse coords for link traversal. > > Does Gecko provide a straight forward way to > render into an off-screen bitmap/image/ .... ? Can I pass in my own > coordinates for the current (simulated) mouse position ? Any pointers > would be > appreciated. > Thanks. > > conrad tse > [EMAIL PROTECTED]
