File saving
Saving a pixbuf to a file.
These functions allow to save a #GdkPixbuf in a number of
file formats. The formatted data can be written to a file
or to a memory buffer. &gdk-pixbuf; can also call a user-defined
callback on the data, which allows to e.g. write the image
to a socket or store it in a database.
@pixbuf:
@filename:
@type:
@option_keys:
@option_values:
@error:
@Returns:
@pixbuf:
@filename:
@type:
@error:
@Varargs:
@Returns:
Specifies the type of the function passed to
gdk_pixbuf_save_to_callback(). It is called once for each block of
bytes that is "written" by gdk_pixbuf_save_to_callback(). If
successful it should return %TRUE. If an error occurs it should set
@error and return %FALSE, in which case gdk_pixbuf_save_to_callback()
will fail with the same error.
@buf: bytes to be written.
@count: number of bytes in @buf.
@error: A location to return an error.
@data: user data passed to gdk_pixbuf_save_to_callback().
@Returns: %TRUE if successful, %FALSE (with @error set) if failed.
@Since: 2.4
@pixbuf:
@save_func:
@user_data:
@type:
@error:
@Varargs:
@Returns:
@pixbuf:
@save_func:
@user_data:
@type:
@option_keys:
@option_values:
@error:
@Returns:
@pixbuf:
@buffer:
@buffer_size:
@type:
@error:
@Varargs:
@Returns:
@pixbuf:
@buffer:
@buffer_size:
@type:
@option_keys:
@option_values:
@error:
@Returns:
@pixbuf:
@stream:
@type:
@cancellable:
@error:
@Varargs:
@Returns: