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.

Parameters

pixbufa gdkpixbuf.pixbuf.Pixbuf

Returns