xslice
[ XITE Reference Manual | XITE home ]
Contents
Name
xslice, colorbar_image, colorbar_widget - Mix image colors
in a palette
#include <xite/Xslice.h>
void xslice( Widget wid, IMAGE image,
Colormap map, int planes );
IMAGE colorbar_image( long xsize, long ysize,
long low, long high, Visual *visual,
char *title );
Widget colorbar_widget( Widget parent,
char *resource_name,
char *shell_resource_name, int colortab,
long xsize, long ysize, long low, long high,
Visual *visual, int depth, char *title,
image_callbacks *callbacks );
xslice makes a piecewise constant lookup table (LUT) of
pseudocolors. Colors may be mixed in a palette by specifying
rgb or ihs values.
colorbar_image returns a BIFF image where each row
contains pixel values from low to high, linearly
increasing. The image size is determined by xsize
(horizontal) and ysize (vertical). The image is one-band
if the class of visual is PseudoColor, otherwise it is
three-band. If low equals high, the default values 0
and 255 are used for low and high respectively.
colorbar_widget returns a colorbar widget. colortab
is an index into the list of available colortables for the
images (shown by the "Colors" menu in an image). With a
negative value for colortab, a default value equal to the
last colortable in the "Colors" menu will be used.
-
Send colortable to xshow
- Send LUT back to xshow
-
Send colortable to file
- Save LUT in a file
-
Load original colortable
- Load the colortable which the corresponding image used when
the slice application was started
-
Load colortable from file
- Read LUT from file
-
Set patch in color range
- Select a color index-range to fill with the color in the
palette
The following actions may be invoked in the colorfield in
the bottom of the slice window.
-
<Btn1Down>
- Fill LUT and colorfield at cursor position with the palette
color. This will most likely influence the image.
-
<Btn2Down>
- Set the palette color equal to the LUT value at the cursor
position. This will influence the color palette.
-
<Btn3Down>
- Replace a constant part of LUT values at the cursor position
with the palette color.
-
Drag <Btn>
- Same as <Btn1Down>
xshow(1)
Otto Milvang
Svein Bøe
Svein Bøe
$Id: Xslice.c,v 1.68 1997/06/02 11:17:53 svein Exp $