cairoSurfaceCreateFromPixbuf

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

Parameters

pixbuf gdkpixbuf.pixbuf.Pixbuf

a #GdkPixbuf

scale int

the scale of the new surface, or 0 to use same as window

forWindow gdk.window.Window

The window this will be drawn to, or null

Return Value

Type: cairo.surface.Surface

a new cairo surface, must be freed with cairo.surface.Surface.destroy