Hi,
FrameView class has a method paintContents which can do that.
If you need the complete HTML document to be rendered, you need to
call this method on the mainFrame.

Regards,
Raj.

On Mon, May 3, 2010 at 8:54 PM, Ariya Hidayat <[email protected]> wrote:
>> Simple question: is it possible to render an HTML document to an image using
>> the WebKit Core? If so, can someone provide a code example?
>
> I don't know about other ports, but it is dead easy with QtWebKit, see
> http://labs.qt.nokia.com/blogs/2009/01/15/capturing-web-pages/ for
> details
> (the code is at
> http://qt.gitorious.org/qt-labs/graphics-dojo/trees/master/webcapture).
>
> Regards,
>
> --
> Ariya Hidayat
> http://www.linkedin.com/in/ariyahidayat
> _______________________________________________
> webkit-help mailing list
> [email protected]
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
>
_______________________________________________
webkit-help mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help

Reply via email to