pix-sun — convert a BRL PIX(5) format image to a Sun Rasterfile format
pix-sun converts the BRL PIX(5) format file on the standard input to a Sun Rasterfile format file on the standard output. The rasterfile produced is a "standard" (as opposed to "byte encoded") image, with 8 bits per pixel, with a palette of 256 colors.
use a dither map
tells pix-sun that the input is file_height scanlines tall
sets both the width and the height for the input to be squaresize
tells pix-sun that the input is file_width pixels wide
This software is Copyright (c) 1989-2016 by the United States Government as represented by U.S. Army Research Laboratory.