Image.from_surface


Description:

[ CCode ( has_construct_function = false , type = "GtkWidget*" ) ]
[ Version ( since = "3.10" ) ]
public Image.from_surface (Surface? surface)

Creates a new Image displaying surface.

The Image does not assume a reference to the surface; you still need to unref it if you own references. Image will add its own reference rather than adopting yours.

Parameters:

surface

a XlibSurface, or null

Returns:

a new Image




2022 vala-language.org