Top | ![]() |
![]() |
![]() |
![]() |
Pixbufs are client-side images. For details on how to create and manipulate pixbufs, see the GdkPixbuf API documentation.
The functions described here allow to obtain pixbufs from GdkWindows and cairo surfaces.
GdkPixbuf * gdk_pixbuf_get_from_surface (cairo_surface_t *surface
,gint src_x
,gint src_y
,gint width
,gint height
);
Transfers image data from a cairo_surface_t and converts it to an RGB(A) representation inside a GdkPixbuf. This allows you to efficiently read individual pixels from cairo surfaces.
This function will create an RGB pixbuf with 8 bits per channel.
The pixbuf will contain an alpha channel if the surface
contains one.