Method

GdkPixbufPixbufset_option

Declaration [src]

gboolean
gdk_pixbuf_set_option (
  GdkPixbuf* pixbuf,
  const gchar* key,
  const gchar* value
)

Description [src]

Attaches a key/value pair as an option to a GdkPixbuf.

If key already exists in the list of options attached to the pixbuf, the new value is ignored and FALSE is returned.

Available since:2.2

Parameters

key const gchar*
 

A nul-terminated string.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
value const gchar*
 

A nul-terminated string.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.

Return value

Returns: gboolean
 

TRUE on success.