1mlib_ImageClear_Fp(3MLIB) mediaLib Library Functions mlib_ImageClear_Fp(3MLIB)
2
3
4

NAME

6       mlib_ImageClear_Fp - clear
7

SYNOPSIS

9       cc [ flag... ] file... -lmlib [ library... ]
10       #include <mlib.h>
11
12       mlib_status mlib_ImageClear_Fp(mlib_image *img, const mlib_d64 *color);
13
14

DESCRIPTION

16       The  mlib_ImageClear_Fp()  function  sets an image to a specific color.
17       The data type of the image can be MLIB_FLOAT or MLIB_DOUBLE.
18
19
20       It uses the following equation:
21
22         img[x][y][i] = color[i]
23
24

PARAMETERS

26       The function takes the following arguments:
27
28       img      Pointer to an image.
29
30
31       color    Array of color values by channel. color[i] contains the  value
32                for channel i.
33
34

RETURN VALUES

36       The  function  returns MLIB_SUCCESS if successful. Otherwise it returns
37       MLIB_FAILURE.
38

ATTRIBUTES

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

SEE ALSO

54       mlib_ImageClear(3MLIB),     mlib_ImageClearEdge(3MLIB),     mlib_Image‐
55       ClearEdge_Fp(3MLIB), attributes(5)
56
57
58
59SunOS 5.11                        2 Mar 2007         mlib_ImageClear_Fp(3MLIB)
Impressum