Snapshot.appendTexture

Creates a new render node drawing the texture into the given bounds and appends it to the current render node of snapshot.

If the texture needs to be scaled to fill bounds, linear filtering is used. See gtk.snapshot.Snapshot.appendScaledTexture if you need other filtering, such as nearest-neighbour.

class Snapshot
void
appendTexture

Parameters

texture gdk.texture.Texture

the texture to render

bounds graphene.rect.Rect

the bounds for the new node