Function

Gimpcairo_surface_create_buffer

Declaration [src]

GeglBuffer*
gimp_cairo_surface_create_buffer (
  cairo_surface_t* surface
)

Description [src]

This function returns a GeglBuffer which wraps surfaces pixels. It must only be called on image surfaces, calling it on other surface types is an error.

Available since:2.10

Parameters

surface cairo_surface_t
 

A Cairo surface.

 The data is owned by the caller of the function.

Return value

Returns: GeglBuffer
 

A GeglBuffer.

 The caller of the function takes ownership of the data, and is responsible for freeing it.