Method

VipsImagebandfold

Declaration [src]

int
vips_bandfold (
  VipsImage* in,
  VipsImage** out,
  ...
)

Description [src]

Fold up an image horizontally: width is collapsed into bands. Use factor to set how much to fold by: factor 3, for example, will make the output image three times narrower than the input, and with three times as many bands. By default the whole of the input width is folded up.

::: tip “Optional arguments” * factor: gint, fold by this factor

::: seealso vips_csvload(), vips_bandunfold().

Parameters

out VipsImage
 

Output image.

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

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, -1 on error.