Method

VipsImagemap

Declaration [src]

void*
vips_image_map (
  VipsImage* image,
  VipsImageMapFn fn,
  void* a
)

Description [src]

This function calls fn for every header field, including every item of metadata.

Like all _map functions, the user function should return NULL to continue iteration, or a non-NULL pointer to indicate early termination.

See also: vips_image_get_typeof(), vips_image_get().

Parameters

fn VipsImageMapFn
 

Function to call for each header field.

 The argument can be NULL.
a void*
 

User data for function.

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

Return value

Returns: void*
 

NULL on success, the failing pointer otherwise.

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