MAN page from RedHat Other XITE-3.3-3.i386.rpm
COLOR2ASCII
Section: User Commands (1)
Updated: 16 Mar 1998
Index
NAME
color2ascii - dump a colortable in ascii format
SYNTAX
color2ascii [<option>...] <image-file> <ascii-file>
DESCRIPTION
Writes the colortable contents to
ascii-file,in asciiformat. Use "-" or "-1" for output to stdout.
The ascii output can be given as input to mct(1).For details on the output format, refer toPrintColortable(3).
On a visual with composite colormaps (DirectColor orTrueColor visual), one part of the pixelvalue is used as anindex into the colormap which controls the amount of red, onepart is used as an index into the green colormap and one partfor the blue colormap.
On a visual with non-composite colormap (e.g. PseudoColorvisual), only one of these parts is used as an index into thesingle colormap.
When the contents of a colortable stored in a file in BIFFformat is printed, only the PseudoColor part ofthe pixelvalue is shown because the file only stores thispart of the pixel-value.
OPTIONS
- -hex
- Print pixel value as hexademical number (default decimal)
SEE ALSO
color2ascii(3),
mct(1),
PrintColortable(3),
colorquant(1),
makepseudo(1)
AUTHOR
Svein Bøe, BLAB, Ifi, UiO
ID
$Id: color2ascii.c,v 1.13 1996/11/29 15:14:06 svein Exp $
EXAMPLES
color2ascii -o mona.txt mona.col
Index
- NAME
- SYNTAX
- DESCRIPTION
- OPTIONS
- SEE ALSO
- AUTHOR
- ID
- EXAMPLES
This document was created byman2html,using the manual pages.