Snapshot.toPaintable

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

sizeThe size of the resulting paintable or null to use the bounds of the snapshot

Returns

a new [gdk.paintable.Paintable]