sun-pix — convert Sun bitmaps from screendump(1) into pix(5) or bw(5) raster image
is a program to take Sun bitmap files created with Sun's
command, and convert them to a
format file. If the
flag is specified, a
format file is created instead. Note that
will refuse to write to a terminal; its output must be redirected unless it's invoked with the
flag. The dimensions of the input file are the dimensions of the output
file, and use of the
flag will cause the image size to be printed without further
processing of the input, or generation of any other output;
the image size is output as a pair
of command line options (i.e., -w1152 -n900) suitable
for use with other
tools such as
flag is specified, all the fields of the header are printed on stderr,
to aid debugging. Note that the "encoded" format is not supported.
flag will invert the sense of a one-bit wide input image, i.e.,
exchanging black for white. The default Sun image is black print on
white background; the
flag will give a white image on black background, which is often better
for purposes of creating overlays to be composited with
on top of color images.
flag indicates that the input is a pure bitmap with no Sun-style header
on it. The first bit to be processed will be the most significant bit (MSB),
i.e., the left-most bit in the byte.
flag indicates that the color map is to be output.
Note that the input file is expected to be in Sun ("network") byte order (i.e., "big-endian", with byte 0 on the left), regardless of the byte order of the machine running this program.
This software is Copyright (c) 1989-2016 by the United States Government as represented by U.S. Army Research Laboratory.