DESIGN (xvisual) functions
LIBRARY ROUTINE
xvw_create_palette - create a palette object
LIBRARY CALL
xvobject xvw_create_palette(
xvobject parent,
char *name)
INPUT
- parent - the parent object; NULL will cause a
default toplevel to be created automatically
- name - a name for this particular instance of the palette
object (for use in app-defaults files, etc)
OUTPUT
none
RETURN VALUE
The palette xvobject on success, NULL otherwise
DESCRIPTION
The palette visual object provides a visual display
of the colors defined by a colormap. The colors may be
displayed as a grid of color cells, a color palette, or
a color wheel.
Note that when an RGB image is displayed on an
8-bit screen, a 3-3-2 transformation is used in
order to convert the RGB image into an 8-bit representation.
Because of this, the colors in the palette object that
are displayed in this situation will reflect the 3-3-2
map, and may not seem to correspond to the displayed image.
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
none
MODIFICATION
none
FILES
$DESIGN/objects/library/xvisual/src/Palette.c
SEE ALSO
xvisual(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.