cairo_region_t* gdk_cairo_region_create_from_surface ( cairo_surface_t* surface )
Creates region that covers the area where the given
surface is more than 50% opaque.
This function takes into account device offsets that might be set with cairo_surface_set_device_offset().
Available since: 4.0
A cairo surface.
The data is owned by the caller of the function.
|The caller of the function takes ownership of the data, and is responsible for freeing it.|