Function

VipsAreanew

Declaration [src]

VipsArea*
vips_area_new (
  VipsCallbackFn free_fn,
  void* data
)

Description [src]

A VipsArea wraps a chunk of memory. It adds reference counting and a free function. It also keeps a count and a %GType, so the area can be an array.

This type is used for things like passing an array of double or an array of VipsObject pointers to operations, and for reference-counted immutable strings.

Inital count == 1, so _unref() after attaching somewhere.

See also: vips_area_unref().

Parameters

free_fn VipsCallbackFn
 

data will be freed with this function.

data void*
 

Data will be freed with this function.

 The argument can be NULL.
 The data is owned by the caller of the function.

Return value

Returns: VipsArea
 

The new VipsArea.

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