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:pixbuf object
scale -- an integer with the scale of the new surface, or 0 to use same as window
window -- a 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

#2023-3-12