mediaLib Library Functions mlibImageClear(3MLIB)
NAME
mlibImageClear - clear
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
mlibstatus mlibImageClear(mlibimage *img, const mlibs32 *color);
DESCRIPTION
The mlibImageClear() function sets an image to a specific
color. The data type of the image can be MLIBIT,
MLIBYTE, MLIBSHORT, MLIBUSHORT, or MLIBINT.
It uses the following equation:
img[x][y][i] = color[i]
PARAMETERS
The function takes the following arguments:
img Pointer to an image.
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 mlibImageClear(3MLIB)
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level MT-Safe
SEE ALSO
mlibImageClearFp(3MLIB), mlibImageClearEdge(3MLIB),
mlibImageClearEdgeFp(3MLIB), attributes(5)
SunOS 5.11 Last change: 2 Mar 2007 2
|