Snapshot.toPaintable
gdk.paintable.Paintable toPaintable(graphene.size.Size size)Returns a paintable encapsulating the render node that was constructed by snapshot.
After calling this function, it is no longer possible to add more nodes to snapshot. The only function that should be called after this is [gobject.object.ObjectWrap.unref].
Parameters
size | The size of the resulting paintable or null to use the bounds of the snapshot |
Returns
a new [gdk.paintable.Paintable]