1mlib_ImageInvert_Fp(3MLIB)mediaLib Library Functionsmlib_ImageInvert_Fp(3MLIB)
2
3
4
6 mlib_ImageInvert_Fp - invert
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_ImageInvert_Fp(mlib_image *dst, const mlib_image *src);
13
14
16 The mlib_ImageInvert_Fp() function performs the floating-point inver‐
17 sion of an image such that white becomes black, light gray becomes dark
18 gray, and so on.
19
20
21 It uses the following equation:
22
23 dst[x][y][i] = -src[x][y][i]
24
25
27 The function takes the following arguments:
28
29 dst Pointer to destination image.
30
31
32 src Pointer to source image.
33
34
36 The function returns MLIB_SUCCESS if successful. Otherwise it returns
37 MLIB_FAILURE.
38
40 See attributes(5) for descriptions of the following attributes:
41
42
43
44
45 ┌─────────────────────────────┬─────────────────────────────┐
46 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
47 ├─────────────────────────────┼─────────────────────────────┤
48 │Interface Stability │Committed │
49 ├─────────────────────────────┼─────────────────────────────┤
50 │MT-Level │MT-Safe │
51 └─────────────────────────────┴─────────────────────────────┘
52
54 mlib_ImageInvert_Fp_Inp(3MLIB), mlib_ImageInvert(3MLIB), mlib_ImageIn‐
55 vert_Inp(3MLIB), attributes(5)
56
57
58
59SunOS 5.11 2 Mar 2007 mlib_ImageInvert_Fp(3MLIB)