mac-pix — convert Apple MacPaint bitmap into pix(5) or bw(5) raster image
mac-pix [-clb ] [-s
reads an Apple MacIntosh MacPaint bitmap file and generates a
raster image file.
While the MacPaint file is 720x576 pixels, it is possible to specify
an alternate size input file with the
flags; the usefulness of this is unknown.
By default, the output
file is 1024x1024 pixels, with the input image located in the lower
left corner of the output (nearest the origin). The default color for
an "on" pixel is white (R=G=B=255); alternatively, the
flag can be used to specify intensities for each of the colors, in
the range of [0..255].
flag will output a
black and white file instead.
flag is specified, the input image is centered in the middle of the output image.
If the output width is set to 0 by the user, the input width is used for the output width; similarly, if the output height is set to 0 by the user,
the input height is used for the output height. Those values of 0 can be set simultaneously by use of the
flag, so that both width and height of the input are used. Alternatively, the
flag can be used to specify the square output size, or
flags can be used to specify the output width and height.
If no input file is specified, standard input is read instead.
-y flags can be used to specify the input x and y offset.
-Y flags can be used to specify the output x and y offset.
Especially pleasing displays of MacPaint documents can be made by using pixmerge(1) to combine them with the output of pixbackgnd(1):
pixbackgnd -H 160 200 > bg.pix
mac-pix -c file.mac | pixmerge - bg.pix | pix-fb
This software is Copyright (c) 1989-2016 by the United States Government as represented by U.S. Army Research Laboratory.