mediaLib Library Functions mlibImageReplaceColorInp(3MLIB)
NAME
mlibImageReplaceColorInp - replace a color in an image, in
place
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
mlibstatus mlibImageReplaceColorInp(mlibimage *srcdst,
const mlibs32 *color1, const mlibs32 *color2);
DESCRIPTION
The mlibImageReplaceColorInp() function scans the image
for all pixels with color value equal to color1 and replaces
these pixels with color2.
It uses the following equation:
srcdst[x][y] = color2 if srcdst[x][y] == color1
PARAMETERS
The function takes the following arguments:
srcdst Pointer to the source and destination image.
color1 Array of color components to be replaced.
color2 Array of color components to replace color1.
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 mlibImageReplaceColorInp(3MLIB)
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level MT-Safe
SEE ALSO
mlibImageReplaceColor(3MLIB),
mlibImageReplaceColorFp(3MLIB),
mlibImageReplaceColorFpInp(3MLIB),
mlibImageThresh5(3MLIB), mlibImageThresh5Inp(3MLIB),
mlibImageThresh5Fp(3MLIB),
mlibImageThresh5FpInp(3MLIB), attributes(5)
SunOS 5.11 Last change: 2 Mar 2007 2
|