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.
n int*
 

Optionally return number of elements here.

 The argument will be set by the function.
 The argument can be NULL.
type GType*
 

Optionally return element type here.

 The argument will be set by the function.
 The argument can be NULL.
sizeof_type size_t*
 

Optionally return sizeof() element type here.

 The argument will be set by the function.
 The argument can be NULL.

Return value

Returns: void*
 

The pointer held by area.

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