lkcolorconvert - The routine lkcolorconvert() is used to perform a colorspace conversion on an input object. Currently, this routine is invoked when the KCOLOR_ COLORSPACE attribute is called, however, is setup so that it can be called if needed. Currently, this routine enforces data ranges which correspond to the converted colormodel. This means that the output image may not be in the correct range for viewing.
LIBRARY CALL
int lkcolorconvert(
kobject src_obj,
int src_color_model,
int dest_color_model)
INPUT
src_obj - This contains the input object.
kobject dest_obj - This contains the output image.
int
src_color_model - This integer value represents
which colorspace the input object was
initially prior to conversion.
int
dest_color_model - This integer value represents
which colorspace is being converted to.
OUTPUT
none
RETURN VALUE
TRUE (1) on success, FALSE (0) otherwise
DESCRIPTION
This library routine controls which colorspace
transformation functions would be called. It accepts
input parameters from the kcltrans kroutine.