Method

GtkOffscreenWindowget_pixbuf

since: 2.20

Declaration [src]

GdkPixbuf*
gtk_offscreen_window_get_pixbuf (
  GtkOffscreenWindow* offscreen
)

Description [src]

Retrieves a snapshot of the contained widget in the form of a GdkPixbuf. This is a new pixbuf with a reference count of 1, and the application should unreference it once it is no longer needed.

Available since: 2.20

Return value

Type: GdkPixbuf

A GdkPixbuf pointer, or NULL.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.
The return value can be NULL.