Method

VipsImageshrinkv

Declaration [src]

int
vips_shrinkv (
  VipsImage* in,
  VipsImage** out,
  int vshrink,
  ...
)

Description [src]

Shrink in vertically by an integer factor.

Each pixel in the output is the average of the corresponding column of vshrink pixels in the input.

This is a very low-level operation: see vips_resize() for a more convenient way to resize images.

This operation does not change xres or yres. The image resolution needs to be updated by the application.

::: tip “Optional arguments” * ceil: gboolean, round-up output dimensions

::: seealso vips_shrinkh(), vips_shrink(), vips_resize(), vips_affine().

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.
vshrink int
 

Vertical shrink.

... none
 

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, -1 on error.