Texture.newForPixbuf

Creates a new texture object representing the gdkpixbuf.pixbuf.Pixbuf.

This function is threadsafe, so that you can e.g. use GTask and gio.task.Task.runInThread to avoid blocking the main thread while loading a big image.

class Texture
static
newForPixbuf

Parameters

pixbuf gdkpixbuf.pixbuf.Pixbuf

Return Value

Type: gdk.texture.Texture