Drawables to Pixbufs — Getting parts of a GDK drawable's image data into a pixbuf.
The functions to take the image data from a GDK drawable and dump it into a pixbuf are contained in GDK, see the Pixbufs section of the GDK documentation.