1mlib_ImageReplaceColor_Fp_Imnepd(i3aMLLiIbB)LibrarymFluinbc_tIimoangseReplaceColor_Fp_Inp(3MLIB)
2
3
4
6 mlib_ImageReplaceColor_Fp_Inp - replace a color in an image, in place
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_ImageReplaceColor_Fp_Inp(mlib_image *srcdst,
13 const mlib_d64 *color1, const mlib_d64 *color2);
14
15
17 The mlib_ImageReplaceColor_Fp_Inp() function scans the image for all
18 pixels with color value equal to color1 and replaces these pixels with
19 color2.
20
21
22 It uses the following equation:
23
24 srcdst[x][y] = color2 if srcdst[x][y] == color1
25
26
28 The function takes the following arguments:
29
30 srcdst Pointer to the source and destination image.
31
32
33 color1 Array of color components to be replaced.
34
35
36 color2 Array of color components to replace color1.
37
38
40 The function returns MLIB_SUCCESS if successful. Otherwise it returns
41 MLIB_FAILURE.
42
44 See attributes(5) for descriptions of the following attributes:
45
46
47
48
49 ┌─────────────────────────────┬─────────────────────────────┐
50 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
51 ├─────────────────────────────┼─────────────────────────────┤
52 │Interface Stability │Committed │
53 ├─────────────────────────────┼─────────────────────────────┤
54 │MT-Level │MT-Safe │
55 └─────────────────────────────┴─────────────────────────────┘
56
58 mlib_ImageReplaceColor(3MLIB), mlib_ImageReplaceColor_Inp(3MLIB),
59 mlib_ImageReplaceColor_Fp(3MLIB), mlib_ImageThresh5(3MLIB),
60 mlib_ImageThresh5_Inp(3MLIB), mlib_ImageThresh5_Fp(3MLIB),
61 mlib_ImageThresh5_Fp_Inp(3MLIB), attributes(5)
62
63
64
65SunOS 5.11 2 Mar 200m7lib_ImageReplaceColor_Fp_Inp(3MLIB)