mediaLib Library Functions mlibImageClearEdge(3MLIB)
NAME
mlibImageClearEdge - sets edges of an image to a specific
color
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
mlibstatus mlibImageClearEdge(mlibimage *img, mlibs32 dx, mlibs32 dy,
const mlibs32 *color);
DESCRIPTION
The mlibImageClearEdge() function sets edges of an image to
a specific color. This function can be used in conjunction
with the convolve and other spatial functions to fill in the
pixel values along the edges. The data type of the image can
be MLIBIT, MLIBYTE, MLIBSHORT, MLIBUSHORT, or
MLIBINT.
PARAMETERS
The function takes the following arguments:
img Pointer to an image.
dx Number of columns on the left and right edges of
the image to be cleared.
dy Number of rows at the top and bottom edges of the
image to be cleared.
color Array of color values by channel. color[i] contains
the value for channel i.
RETURN VALUES
The function returns MLIBSUCES if successful. Otherwise
it returns MLIBFAILURE.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
SunOS 5.11 Last change: 2 Mar 2007 1
mediaLib Library Functions mlibImageClearEdge(3MLIB)
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level MT-Safe
SEE ALSO
mlibImageClear(3MLIB), mlibImageClearFp(3MLIB),
mlibImageClearEdgeFp(3MLIB), attributes(5)
SunOS 5.11 Last change: 2 Mar 2007 2
|