Hello.

I've patched my checkout of webkit/gtk from the svn repositories and
applied your patch for webkit_web_frame_show() (found at
http://svn.o-hand.com/repos/clutter/trunk/clutter-webkit/webkit-frame-show-cairo.patch)

I tried to render the frame to a cairo image surface and later save that
as a PNG image:
----------------------------------
cairo_surface_t *surface =
cairo_image_surface_create(CAIRO_FORMAT_RGB24, 200, 200);
WebKitWebFrame *aframe = webkit_web_view_get_main_frame(webView);
cr = cairo_create(surface);
webkit_web_frame_show(aframe, cr);
cairo_surface_write_to_png(surface, "/home/luka/Desktop/test.png");
----------------------------------

I put that code into the expose-event of the webkit webview widget. The
problem is that the created PNG image, when I open it, is black and does
not contain the actual page at that moment.

I would really appreciate if you could help me and give me some advise
how to correct this. I'm trying to modify webkit to render pages as
images.

Greets,
Luka

Attachment: signature.asc
Description: To je digitalno podpisan del sporočila

Reply via email to