summaryrefslogtreecommitdiff
path: root/gdk/gdkpixbuf.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-07-13 19:44:41 +0200
committerBenjamin Otte <otte@redhat.com>2010-08-10 21:02:26 +0200
commit39b47eaf2536c5c7b52b21705ce76bd526812aa7 (patch)
tree44faddd5c1aba3d0ad303bda2d0d337c455af9fe /gdk/gdkpixbuf.h
parentb926ce719bcdfaf0a6ff39cbaa1f6cf01eb55d03 (diff)
downloadgtk+-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.h9
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,