1mlib_ImageReplaceColor_Fp(3mMeLdIiBa)Lib Library Funcmtliiobn_sImageReplaceColor_Fp(3MLIB)
2
3
4

NAME

6       mlib_ImageReplaceColor_Fp - replace a color in an image
7

SYNOPSIS

9       cc [ flag... ] file... -lmlib [ library... ]
10       #include <mlib.h>
11
12       mlib_status mlib_ImageReplaceColor_Fp(mlib_image *dst,
13            const mlib_image *src, const mlib_d64 *color1, const mlib_d64 *color2);
14
15

DESCRIPTION

17       The mlib_ImageReplaceColor_Fp() function copies the source image to the
18       destination image and replaces the pixels having a value of color1 with
19       color2.
20
21
22       It uses the following equation:
23
24         dst[x][y] = color2     if src[x][y] == color1
25         dst[x][y] = src[x][y]  if src[x][y] != color1
26
27

PARAMETERS

29       The function takes the following arguments:
30
31       dst       Pointer to destination image.
32
33
34       src       Pointer to source image.
35
36
37       color1    Array of color components to be replaced.
38
39
40       color2    Array of color components to replace color1.
41
42

RETURN VALUES

44       The  function  returns MLIB_SUCCESS if successful. Otherwise it returns
45       MLIB_FAILURE.
46

ATTRIBUTES

48       See attributes(5) for descriptions of the following attributes:
49
50
51
52
53       ┌─────────────────────────────┬─────────────────────────────┐
54       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
55       ├─────────────────────────────┼─────────────────────────────┤
56       │Interface Stability          │Committed                    │
57       ├─────────────────────────────┼─────────────────────────────┤
58       │MT-Level                     │MT-Safe                      │
59       └─────────────────────────────┴─────────────────────────────┘
60

SEE ALSO

62       mlib_ImageReplaceColor(3MLIB),       mlib_ImageReplaceColor_Inp(3MLIB),
63       mlib_ImageReplaceColor_Fp_Inp(3MLIB),         mlib_ImageThresh5(3MLIB),
64       mlib_ImageThresh5_Inp(3MLIB),              mlib_ImageThresh5_Fp(3MLIB),
65       mlib_ImageThresh5_Fp_Inp(3MLIB), attributes(5)
66
67
68
69SunOS 5.11                        2 Mar 2007  mlib_ImageReplaceColor_Fp(3MLIB)
Impressum