surfaceCreateFromPixbuf

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

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, or %NULL

Return Value

Type: Surface

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

Meta

Since

3.10