Constructor
GdkTexturenew_for_pixbuf
deprecated: 4.20
Declaration [src]
GdkTexture*
gdk_texture_new_for_pixbuf (
GdkPixbuf* pixbuf
)
Description [src]
Creates a new texture object representing the GdkPixbuf.
This function is threadsafe, so that you can e.g. use GTask
and g_task_run_in_thread() to avoid blocking the main
thread while loading a big image.
Deprecated since: 4.20
Use e.g. libglycin, which can load many image
formats into a GdkTexture.
Parameters
pixbuf-
Type:
GdkPixbufA
GdkPixbuf.The data is owned by the caller of the function.
Return value
Type: GdkTexture
A new GdkTexture.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |