1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 Saving a pixbuf to a file.
7 <!-- ##### SECTION Long_Description ##### -->
9 These functions allow to save a #GdkPixbuf in a number of
10 file formats. The formatted data can be written to a file
11 or to a memory buffer. &gdk-pixbuf; can also call a user-defined
12 callback on the data, which allows to e.g. write the image
13 to a socket or store it in a database.
16 <!-- ##### SECTION See_Also ##### -->
21 <!-- ##### SECTION Stability_Level ##### -->
24 <!-- ##### FUNCTION gdk_pixbuf_savev ##### -->
38 <!-- ##### FUNCTION gdk_pixbuf_save ##### -->
51 <!-- ##### USER_FUNCTION GdkPixbufSaveFunc ##### -->
53 Specifies the type of the function passed to
54 gdk_pixbuf_save_to_callback(). It is called once for each block of
55 bytes that is "written" by gdk_pixbuf_save_to_callback(). If
56 successful it should return %TRUE. If an error occurs it should set
57 @error and return %FALSE, in which case gdk_pixbuf_save_to_callback()
58 will fail with the same error.
61 @buf: bytes to be written.
62 @count: number of bytes in @buf.
63 @error: A location to return an error.
64 @data: user data passed to gdk_pixbuf_save_to_callback().
65 @Returns: %TRUE if successful, %FALSE (with @error set) if failed.
69 <!-- ##### FUNCTION gdk_pixbuf_save_to_callback ##### -->
83 <!-- ##### FUNCTION gdk_pixbuf_save_to_callbackv ##### -->
98 <!-- ##### FUNCTION gdk_pixbuf_save_to_buffer ##### -->
112 <!-- ##### FUNCTION gdk_pixbuf_save_to_bufferv ##### -->
127 <!-- ##### FUNCTION gdk_pixbuf_save_to_stream ##### -->