Function

Purplegdk_pixbuf_from_data

unstable since: 3.0

Declaration [src]

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

Description [src]

Create a GdkPixbuf from a chunk of image data.

Available since: 3.0

Parameters

buf

Type: const guchar*

The raw binary image data.

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

Type: gsize

The length of buf in bytes.

Return value

Type: 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.