cairoSurfaceCreateFromPixbuf
fn
cairo.surface.Surface cairoSurfaceCreateFromPixbuf(gdkpixbuf.pixbuf.Pixbuf pixbuf, int scale, gdk.window.Window forWindow = null)Creates an image surface with the same contents as the pixbuf.
Parameters
pixbuf | a #GdkPixbuf |
scale | the scale of the new surface, or 0 to use same as window |
forWindow | The window this will be drawn to, or null |
Returns
a new cairo surface, must be freed with [cairo.surface.Surface.destroy]