1IM_INVERT(3) Library Functions Manual IM_INVERT(3)
2
3
4
6 im_invert - inverts an image pointed by an image descriptor.
7
9 #include <vips/vips.h>
10
11 int im_invert(in, out)
12 IMAGE *in, *out;
13
15 im_invert inverts the image held by image descriptor in and writes the
16 result on the image descriptor out. The function works on FMTUCHAR
17 images only. The result at point x of the input image is 255-x at the
18 output image. Input can have any no of channels.
19 This is not a generally useful program -- it is included as an exam‐
20 ple of a very simple new-style IO function. Feel the power of the
21 source, Luke!
22
24 The function returns 0 on success and -1 on error.
25
27 im_add(3), im_lintra(3), im_multiply(3).
28
30 J. Cupitt - 21/7/93
31
32
33
34 11 April 1990 IM_INVERT(3)