im_invert(3)

im_invert3

Inverts an image pointed by an image descriptor.

Usage

#include <vips/vips.h>

int im_invert(in, out)
IMAGE *in, *out;

Overview

im_invert inverts the image held by image descriptor in and writes the result on the image descriptor out. The function works on FMTUCHAR images only. The result at point x of the input image is 255-x at the output image. Input can have any no of channels.

This is not a generally useful program -- it is included as an example of a very simple new-style IO function. Feel the power of the source, Luke!

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

Author

J. Cupitt - 21/7/93

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