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

NAME

6       mlib_ImageAnd - computes the And of two images
7

SYNOPSIS

9       cc [ flag... ] file... -lmlib [ library... ]
10       #include <mlib.h>
11
12       mlib_status mlib_ImageAnd(mlib_image *dst, const mlib_image *src1,
13            const mlib_image *src2);
14
15

DESCRIPTION

17       The  mlib_ImageAnd()  function computes the And of two images according
18       to the following equation:
19
20         dst[x][y][i] = src1[x][y][i] & src2[x][y][i]
21
22
23
24       The data type of the images can  be  MLIB_BIT,  MLIB_BYTE,  MLIB_SHORT,
25       MLIB_USHORT, or MLIB_INT.
26

PARAMETERS

28       The function takes the following arguments:
29
30       dst     Pointer to destination image.
31
32
33       src1    Pointer to first source image.
34
35
36       src2    Pointer to second source image.
37
38

RETURN VALUES

40       The  function  returns MLIB_SUCCESS if successful. Otherwise it returns
41       MLIB_FAILURE.
42

ATTRIBUTES

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

SEE ALSO

58       mlib_ImageAnd_Inp(3MLIB), attributes(5)
59
60
61
62SunOS 5.11                        30 Aug 2007             mlib_ImageAnd(3MLIB)
Impressum