diff options
author | Benjamin Otte <otte@redhat.com> | 2010-07-13 19:44:41 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-08-10 21:02:26 +0200 |
commit | 39b47eaf2536c5c7b52b21705ce76bd526812aa7 (patch) | |
tree | 44faddd5c1aba3d0ad303bda2d0d337c455af9fe /gdk/gdkpixbuf.h | |
parent | b926ce719bcdfaf0a6ff39cbaa1f6cf01eb55d03 (diff) | |
download | gtk+-39b47eaf2536c5c7b52b21705ce76bd526812aa7.tar.gz |
API: Add gdk_pixbuf_get_from_surface()
New API to copy any cairo surface into a pixbuf.
Diffstat (limited to 'gdk/gdkpixbuf.h')
-rw-r--r-- | gdk/gdkpixbuf.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdk/gdkpixbuf.h b/gdk/gdkpixbuf.h index 830d6eb83a..b599c0b378 100644 --- a/gdk/gdkpixbuf.h +++ b/gdk/gdkpixbuf.h @@ -72,6 +72,15 @@ GdkPixbuf *gdk_pixbuf_get_from_drawable (GdkPixbuf *dest, int width, int height); +GdkPixbuf *gdk_pixbuf_get_from_surface (GdkPixbuf *dest, + cairo_surface_t *surface, + int src_x, + int src_y, + int dest_x, + int dest_y, + int width, + int height); + GdkPixbuf *gdk_pixbuf_get_from_image (GdkPixbuf *dest, GdkImage *src, GdkColormap *cmap, |