Method

GdkPixdataPixdatafrom_pixbuf

Declaration [src]

gpointer
gdk_pixdata_from_pixbuf (
  GdkPixdata* pixdata,
  const GdkPixbuf* pixbuf,
  gboolean use_rle
)

Description [src]

Converts a GdkPixbuf to a GdkPixdata.

If use_rle is TRUE, the pixel data is run-length encoded into newly-allocated memory and a pointer to that memory is returned.

Deprecated since:2.32

Use GResource instead.

Parameters

pixbuf const GdkPixbuf*
 

The data to fill pixdata with.

 The data is owned by the caller of the function.
use_rle gboolean
 

Whether to use run-length encoding for the pixel data.

Return value

Returns: An array of guint8
 

If use_rle is TRUE, a pointer to the newly-allocated memory for the run-length encoded pixel data, otherwise NULL.