Synopsis#include <gdk-pixbuf/gdk-pixbuf.h> GdkPixbuf* gdk_pixbuf_ref (GdkPixbuf *pixbuf); void gdk_pixbuf_unref (GdkPixbuf *pixbuf); void (*GdkPixbufDestroyNotify) (guchar *pixels, gpointer data); Description
GdkPixbuf structures are reference counted. This means that an
application can share a single pixbuf among many parts of the
code. When a piece of the program needs to keep a pointer to a
pixbuf, it should add a reference to it by calling Note
As GdkPixbuf is derived from GObject now,
Finalizing a pixbuf means to free its pixel
data and to free the GdkPixbuf structure itself. Most of the
library functions that create GdkPixbuf structures create the
pixel data by themselves and define the way it should be freed;
you do not need to worry about those. The only function that lets
you specify how to free the pixel data is
Detailsgdk_pixbuf_ref ()GdkPixbuf* gdk_pixbuf_ref (GdkPixbuf *pixbuf); Warning
Adds a reference to a pixbuf.
gdk_pixbuf_unref ()void gdk_pixbuf_unref (GdkPixbuf *pixbuf); Warning
Removes a reference from a pixbuf.
GdkPixbufDestroyNotify ()void (*GdkPixbufDestroyNotify) (guchar *pixels, gpointer data);
A function of this type is responsible for freeing the pixel array
of a pixbuf. The
|