Section: User Commands (1)
Return to Main Contents
ras2xbm - convert gpsras bitmap images to XBM format
format bitmap image in the given
(as produced by
into an XBM format bitmap image.
The XBM image is sent to the standard output.
argument is given, the standard input is read.
The gpsras image must be a 1 bit/pixel bitmap.
No output is generated if the input cannot be read,
or is of the wrong format.
The XBM format is
usable by other X Window applications,
and can easily be converted to a number of common image file
formats using an application such as the
and other utilities in the
option is given, the image is rotated by the specified number of
degrees, rounded to the closest 90 degree increment.
option is given with an
will invert the bits of the image.
This is reverse of what you'd expect, but that's because the bits
of an XBM image are normally the reverse of what they are in a
The gpsras format treats 1 as white, while the XBM format treats
0 as white.
So, "-inv 0" suppresses reverse video.
The order of bits in each byte is always reversed, as gpsras
format uses the most significant bit first, while XBM uses the
least significant bit first.
sdump(1), emuhpgl(1), gpsras(5),
- SEE ALSO
This document was created by
using the manual pages.
Time: 20:21:28 GMT, November 21, 2017
Copyright © G. R. Detillieux,
Spinal Cord Research Centre,
The University of Manitoba.