CdkPixbuf.Pixbuf.save_to_callbackv

### Method

# CdkPixbuf Pixbufsave_to_callbackv

since: 2.4

#### Declaration [src]

    gboolean
    cdk_pixbuf_save_to_callbackv (
      CdkPixbuf* pixbuf,
      CdkPixbufSaveFunc save_func,
      gpointer user_data,
      const char* type,
      char** option_keys,
      char** option_values,
      GError** error
    )

#### Description [src]

Vector version of `cdk_pixbuf_save_to_callback()`.

Saves pixbuf to a callback in format `type`, which is currently “jpeg”, “png”, “tiff”, “ico” or “bmp”.

If `error` is set, `FALSE` will be returned.

See `cdk_pixbuf_save_to_callback()` for more details.

Available since: 2.4

#### Parameters

`save_func`

  Type: `CdkPixbufSaveFunc`

  A function that is called to save each block of data that the save routine generates.

`user_data`

  Type: `gpointer`

  User data to pass to the save function.

  The argument can be `NULL`.
  The data is owned by the caller of the method.

`type`

  Type: `const char*`

  Name of file format.

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

`option_keys`

  Type: An array of `utf8`

  Name of options to set.

  The argument can be `NULL`.
  The array must be `NULL`-terminated.
  The data is owned by the caller of the method.
  Each element is a NUL terminated UTF-8 string.

`option_values`

  Type: An array of `utf8`

  Values for named options.

  The argument can be `NULL`.
  The array must be `NULL`-terminated.
  The data is owned by the caller of the method.
  Each element is a NUL terminated UTF-8 string.

`error`

  Type: `GError **`

  The return location for a recoverable error.

  The argument can be `NULL`.
  If the return location is not `NULL`, then you must initialize it to a `NULL` `GError*`.
  The argument will be left initialized to `NULL` by the method if there are no errors.
  In case of error, the argument will be set to a newly allocated `GError`; the caller will take ownership of the data, and be responsible for freeing it.

#### Return value

Type: `gboolean`

Whether an error was set.