surfaceCreateFromPixbuf

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

static
surfaceCreateFromPixbuf

Parameters

pixbuf Pixbuf

a GdkPixbuf

scale int

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

forWindow Window

The window this will be drawn to, on NULL.

Return Value

Type: Surface

a new cairo surface, must be freed with cairo_surface_destroy() Since 3.10

Meta