Drawables to Pixbufs

Name

Drawables to Pixbufs -- Getting parts of a drawable's image data into a pixbuf.

Synopsis


#include <gdk-pixbuf/gdk-pixbuf.h>


GdkPixbuf*  gdk_pixbuf_get_from_drawable    (GdkPixbuf *dest,
                                             GdkDrawable *src,
                                             GdkColormap *cmap,
                                             int src_x,
                                             int src_y,
                                             int dest_x,
                                             int dest_y,
                                             int width,
                                             int height);

Description

The functions in this section allow you to take the image data from a GDK drawable and dump it into a GdkPixbuf. This can be used for screenshots and other special effects. Note that these operations can be expensive, since the image data has to be transferred from the X server to the client program and converted.

Details

gdk_pixbuf_get_from_drawable ()

GdkPixbuf*  gdk_pixbuf_get_from_drawable    (GdkPixbuf *dest,
                                             GdkDrawable *src,
                                             GdkColormap *cmap,
                                             int src_x,
                                             int src_y,
                                             int dest_x,
                                             int dest_y,
                                             int width,
                                             int height);

dest : 
src : 
cmap : 
src_x : 
src_y : 
dest_x : 
dest_y : 
width : 
height : 
Returns : 

See Also

gdk_image_get().