Function

GdkPixdatapixbuf_from_pixdata

Declaration [src]

GdkPixbuf*
gdk_pixbuf_from_pixdata (
  const GdkPixdata* pixdata,
  gboolean copy_pixels,
  GError** error
)

Description [src]

Converts a GdkPixdata to a GdkPixbuf.

If copy_pixels is TRUE or if the pixel data is run-length-encoded, the pixel data is copied into newly-allocated memory; otherwise it is reused.

Deprecated since:2.32

Use GResource instead.

Parameters

pixdata GdkPixdata
 

A GdkPixdata to convert into a GdkPixbuf.

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

Whether to copy raw pixel data; run-length encoded pixel data is always copied.

error GError **
  The return location for a GError*, or NULL.

Return value

Returns: GdkPixbuf
 

A new pixbuf.

 The caller of the function takes ownership of the data, and is responsible for freeing it.