[webkit-help] Webkit render to buffer
chatko at gmail.com
Tue May 11 18:36:52 PDT 2010
Thanks for your quick reply. I am using Cairo and I'll give your
suggestion a try tomorrow morning.
On Tue, May 11, 2010 at 3:18 PM, Brent Fulgham <bfulgham at gmail.com> wrote:
> Hi Chris,
> 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