Developer's Daily | Unix by Example |
main | java | perl | unix | dev directory | web log |
ppmtopcx - convert a portable pixmap into a PCX file |
ppmtopcx [-24bit] [-packed] [ppmfile] |
Reads a portable pixmap as input. Produces a PCX file as output. The type of the PCX file depends on the number of colors in the pixmap: |
16 colors or less: |
1 bit/pixel, 1-4 planes. |
256 colors or less: |
8 bits/pixel, 1 plane, colormap at the end of the file. |
More than 256 colors: |
24bit truecolor file (8 bits/pixel, 3 planes). |
-24bit |
Produce a 24bit truecolor file, even if the pixmap has 256 colors or less. |
-packed |
Use "packed pixel" format for files with 16 colors or less: 1, 2, or 4 bits/pixel, 1 plane. |
pcxtoppm(1), ppm(5) |
Copyright (C) 1994 by Ingo Wilken
(Ingo.Wilken@informatik.uni-oldenburg.de) |