[Sugar-devel] help about the get_preview function of activity.Activity class to take screenshots
Martin Sevior
msevior at gmail.com
Mon Jul 20 09:28:24 EDT 2009
Hi Sumit,
I just fixed the example code in the pyabiword module of abiword to
give an example
of how this works.
The important line in this example is:
i.props.pixbuf = abi.render_page_to_image(1)
The converts page number 1 to a GdkPixbuf. Once you have a GdkPixbuf,
in this case in
a Gtk.Image you can convert it to whatever format you wish.
More information about the Sugar-devel
mailing list