surfaceCreateFromPixbuf

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

surfaceCreateFromPixbuf

Parameters

pixbuf Pixbuf
scale int

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

forWindow Window

The window this will be drawn to, or NULL

Return Value

Type: Surface

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

Meta

Since

3.10