Function

VipsArrayIntnew

Declaration [src]

VipsArrayInt*
vips_array_int_new (
  const int* array,
  int n
)

Description [src]

Allocate a new array of ints and copy array into it. Free with vips_area_unref().

See also: VipsArea.

Parameters

array An array of int
 

Array of int.

 The length of the array is specified in the n argument.
 The data is owned by the caller of the function.
n int
 

Number of ints.

Return value

Returns: VipsArrayInt
 

A new VipsArrayInt.

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