1mlib_ImageClearEdge(3MLIB)mediaLib Library Functionsmlib_ImageClearEdge(3MLIB)
2
3
4

NAME

6       mlib_ImageClearEdge - sets edges of an image to a specific color
7

SYNOPSIS

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

DESCRIPTION

17       The mlib_ImageClearEdge() function sets edges of an image to a specific
18       color. This function can be used in conjunction with the  convolve  and
19       other  spatial  functions  to fill in the pixel values along the edges.
20       The data type of the image  can  be  MLIB_BIT,  MLIB_BYTE,  MLIB_SHORT,
21       MLIB_USHORT, or MLIB_INT.
22

PARAMETERS

24       The function takes the following arguments:
25
26       img      Pointer to an image.
27
28
29       dx       Number  of columns on the left and right edges of the image to
30                be cleared.
31
32
33       dy       Number of rows at the top and bottom edges of the image to  be
34                cleared.
35
36
37       color    Array  of color values by channel. color[i] contains the value
38                for channel i.
39
40

RETURN VALUES

42       The function returns MLIB_SUCCESS if successful. Otherwise  it  returns
43       MLIB_FAILURE.
44

ATTRIBUTES

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

SEE ALSO

60       mlib_ImageClear(3MLIB),      mlib_ImageClear_Fp(3MLIB),     mlib_Image‐
61       ClearEdge_Fp(3MLIB), attributes(5)
62
63
64
65SunOS 5.11                        2 Mar 2007        mlib_ImageClearEdge(3MLIB)
Impressum