DATASERV (kappserv) functions


LIBRARY ROUTINE

kcolor_copy_attribute - copy a color attribute from one data object to another.

LIBRARY CALL

int kcolor_copy_attribute(
   kobject  object1,
   kobject  object2,
   char    *attribute)

INPUT

OUTPUT

none

RETURN VALUE

TRUE (1) on success, FALSE (0) otherwise

DESCRIPTION

This function is used to copy the value of a color attribute from one data object to another.

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.

The following example illustrates the use of the copy attribute call to copy two different color attributes.

kcolor_copy_attribute(obj1, ob2, KCOLOR_COLORSPACE);, kcolor_copy_attribute(obj1, obj2, KCOLOR_MAP_OPERATION);,

A complete list of color attributes can be found in Chapter 4 of Programming Services Volume II.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

none

MODIFICATION

none

FILES

$DATASERV/objects/library/kappserv/src/color.c

SEE ALSO

kappserv(3)

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.