[Sugar-devel] Preview

Suraj K S suraj.gillespie at gmail.com
Fri Sep 20 16:28:53 EDT 2013


I'm able to capture the screenshot of a web activity by making use of
http://webkitgtk.org/reference/webkit2gtk/stable/WebKitWebView.html#webkit-web-view-get-snapshot
.
(The image quality seems to be pretty good. In fact, way better than the
current preview screenshots in python activities)

I make those calls here,
https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/src/sugar3/activity/webactivity.py


The question is, do we need to pass it(base64 encoded image) to the js api?

Or would it suffice to just add it to the datastore object on the shell
side (how)?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20130921/ce7643f1/attachment.html>


More information about the Sugar-devel mailing list