im_subsample(3)

im_subsample3

Subsample image by integer factor

Usage

#include <vips/vips.h>

int im_subsample(in, out, xsub, ysub)
IMAGE *in, *out;
int xsub, ysub;

Overview

im_subsample() sub-samples image in by an x and y integer factor. It is much faster than im_shrink(), especially for large partial images.

It works for any image type.

Return value

The function returns 0 on success and -1 on error.

Releases

Unchanged in 4 releases since Debian 3.1 (Sarge).

  1. 3.1–6.0

From libvips-dev 7.20.7-1+b3 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.