Method

VipsAreaget_data

Declaration [src]

void*
vips_area_get_data (
  VipsArea* area,
  size_t* length,
  int* n,
  GType* type,
  size_t* sizeof_type
)

Description [src]

Return the data pointer plus optionally the length in bytes of an area, the number of elements, the GType of each element and the sizeof() each element.

Parameters

length size_t*
 

Optionally return length in bytes here.

 The argument will be set by the function.
 The argument can be NULL.
 The instance takes ownership of the data, and is responsible for freeing it.
n int*
 

Optionally return number of elements here.

 The argument will be set by the function.
 The argument can be NULL.
 The instance takes ownership of the data, and is responsible for freeing it.
type GType*
 

Optionally return element type here.

 The argument will be set by the function.
 The argument can be NULL.
 The instance takes ownership of the data, and is responsible for freeing it.
sizeof_type size_t*
 

Optionally return sizeof() element type here.

 The argument will be set by the function.
 The argument can be NULL.
 The instance takes ownership of the data, and is responsible for freeing it.

Return value

Returns: gpointer
 

The pointer held by area.

 The data is owned by the instance.
 The return value can be NULL.