DATASERV (kappserv) functions


LIBRARY ROUTINE

kcolor_print_attribute - print the value of a color attribute from a data object.

LIBRARY CALL

int kcolor_print_attribute(
   kobject  object,
   char    *attribute,
   kfile   *printfile)

INPUT

OUTPUT

none

RETURN VALUE

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

DESCRIPTION

This function is used to print the value of a color attribute from a data object to an output file.

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 print attribute call to print the colorspace attribute to the output file "outputfile".

kfile *outfile = kfopen("outputfile");

kcolor_print_attributes(object, KCOLOR_COLORSPACE, outfile);

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.