Transfers image data from a XlibSurface and converts it to an RGB(A) representation inside a Pixbuf.
This allows you to efficiently read individual pixels from cairo surfaces. For Windows, use pixbuf_get_from_window instead.
This function will create an RGB pixbuf with 8 bits per channel. The pixbuf will contain an alpha channel if the surface
contains one.
| surface |
surface to copy from |
| src_x |
Source X coordinate within |
| src_y |
Source Y coordinate within |
| width |
Width in pixels of region to get |
| height |
Height in pixels of region to get |
|
A newly-created pixbuf with a reference count of 1, or null on error |