Function

Purplegdk_pixbuf_from_data

Declaration [src]

GdkPixbuf*
purple_gdk_pixbuf_from_data (
  const guchar* buf,
  gsize count
)

Description [src]

Create a GdkPixbuf from a chunk of image data.

Parameters

buf const guchar*
 

The raw binary image data.

 The data is owned by the caller of the function.
count gsize
 

The length of buf in bytes.

Return value

Returns: GdkPixbuf
 

A GdkPixbuf created from the image data, or NULL if there was an error parsing the data.

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