diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2008-01-16 02:24:47 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2008-01-16 02:24:47 +0000 |
commit | 65cdbb25a80ace47ca1108f0caea9c5cc4e34849 (patch) | |
tree | 2705535d0f34d13109c3f71876c1234d45c10205 /gdk-pixbuf/gdk-pixbuf-core.h | |
parent | 8243e3d4152193addb53c2b9cffc1b48e144efc8 (diff) | |
download | gtk+-65cdbb25a80ace47ca1108f0caea9c5cc4e34849.tar.gz |
Add stream i/o functions for gdk-pixbuf
svn path=/trunk/; revision=19373
Diffstat (limited to 'gdk-pixbuf/gdk-pixbuf-core.h')
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-core.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-core.h b/gdk-pixbuf/gdk-pixbuf-core.h index 4ae589526b..04f89b0008 100644 --- a/gdk-pixbuf/gdk-pixbuf-core.h +++ b/gdk-pixbuf/gdk-pixbuf-core.h @@ -28,6 +28,7 @@ #include <glib.h> #include <glib-object.h> +#include <gio/gio.h> G_BEGIN_DECLS @@ -214,6 +215,24 @@ gboolean gdk_pixbuf_save_to_bufferv (GdkPixbuf *pixbuf, char **option_values, GError **error); +GdkPixbuf *gdk_pixbuf_new_from_stream (GInputStream *stream, + GCancellable *cancellable, + GError **error); + +GdkPixbuf *gdk_pixbuf_new_from_stream_at_scale (GInputStream *stream, + gint width, + gint height, + gboolean preserve_aspect_ratio, + GCancellable *cancellable, + GError **error); + +gboolean gdk_pixbuf_save_to_stream (GdkPixbuf *pixbuf, + GOutputStream *stream, + const char *type, + GCancellable *cancellable, + GError **error, + ...); + /* Adding an alpha channel */ GdkPixbuf *gdk_pixbuf_add_alpha (const GdkPixbuf *pixbuf, gboolean substitute_color, guchar r, guchar g, guchar b); |