int kcolor_set_attribute(
kobject object,
char *attribute,
kvalist)
The variable argument list takes the form:
ATTRIBUTE_NAME, value1 [, value2, ...]
The number of value arguments in the variable argument list corresponds to the number of arguments needed to set the attribute.
none
This color service function should be used in conjunction with other application services such as polymorphic data services and geometry data services. This function will work on data objects opened or created with either of those services.
Attributes are set by passing in the attribute name along with the value or variable containing the value to assign to the attribute.
The following example illustrates the use of the set
attribute call to assign two different color
attributes. The define KRGB
could have been
passed in directly to set the colorspace attribute.
int colorspace = KRGB;
kcolor_set_attribute(object,
KCOLOR_COLORSPACE, colorspace);,
kcolor_set_attribute(object,
KCOLOR_MAP_OPERATION, KROW_LEFT);
A complete list of color attributes can be found in Chapter 4 of Programming Services Volume II.
none
none
$DATASERV/objects/library/kappserv/src/color.c