Package: gdk

Function gdk-cairo-surface-create-from-pixbuf

Lambda List

gdk-cairo-surface-create-from-pixbuf (pixbuf scale window)

Arguments

pixbuf -- a gdk-pixbuf object
scale -- an integer with the scale of the new surface, or 0 to use same as window
window -- the gdk-window object this will be drawn to, or nil

Return Value

A new cairo-surface-t instance, must be freed with the cairo-surface-destroy function.

Details

Creates an image surface with the same contents as the pixbuf.
 

See also

2021-12-11