get pixbuf from OsmGpsMap

29 views
Skip to first unread message

Artem Glebov

unread,
Jun 29, 2013, 12:45:54 PM6/29/13
to osm-g...@googlegroups.com
Is there a way to make a 'snapshot' of OsmGpsMap in a pixbuf (in Python), apart from getting the underlying window and then Pixbuf.get_from_drawable(), which also captures overlying windows, e.g. context menus (at least in PyGTK 2)?

John Stowers

unread,
Jun 30, 2013, 4:17:31 PM6/30/13
to osm-gps-map
Hi,

I'd need to look up an exact code example for you, but the 1.0 release targets gtk+-3.0, which means the new way to do this is to render to a custom cairo surface.

Is this for printing?

John


On Sat, Jun 29, 2013 at 6:45 PM, Artem Glebov <artem....@gmail.com> wrote:
Is there a way to make a 'snapshot' of OsmGpsMap in a pixbuf (in Python), apart from getting the underlying window and then Pixbuf.get_from_drawable(), which also captures overlying windows, e.g. context menus (at least in PyGTK 2)?

--
You received this message because you are subscribed to the Google Groups "osm-gps-map" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osm-gps-map...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages