[webkit-help] Webkit render to buffer
bfulgham at gmail.com
Tue May 11 12:18:06 PDT 2010
On Tue, May 11, 2010 at 9:07 AM, Chris Hatko <chatko at gmail.com> wrote:
> I'm using webkit cairo build and I'd like to have the webkit render
> output into a buffer/byte array (for example in RGBA format) instead
> of of drawing to a window. Is there any existing API to do this? Any
> pointers on what classes I should look at?
If you are using the Windows Cairo build, you should be able to use
the WebFrame's "paintDocumentRectToContext" function (passing it a
suitable device context).
This won't give you borders/headers/footers for e.g., print preview,
but it should give you the page contents.
More information about the webkit-help