PixbufSaveFunc


Description:

[ CCode ( error_pos = 1.8 , instance_pos = 1.9 ) ]
[ Version ( since = "2.4" ) ]
public delegate bool PixbufSaveFunc (uint8[] buf) throws Error

Save functions used by [methodGdkPixbuf.Pixbuf.

save_to_callback].

This function 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.

Parameters:

buf

bytes to be written.

count

number of bytes in buf.

data

user data passed to save_to_callback.

error

A location to return an error.

Returns:

`TRUE` if successful, `FALSE` otherwise


Namespace: Gdk
Package: gdk-pixbuf-2.0



2022 vala-language.org