cairo_surface_create_from_pixbuf


Description:


[ Version ( since = "3.10" ) ]
public Surface cairo_surface_create_from_pixbuf (Pixbuf pixbuf, int scale, Window? for_window)

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

Parameters:

pixbuf

a Pixbuf

scale

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

for_window

The window this will be drawn to, or null

Returns:

a new cairo surface, must be freed with cairo_surface_destroy


Namespace: Gdk
Package: gdk-3.0



2022 vala-language.org