RAS2XBM

Section: User Commands (1)
Updated:
Index
Return to Main Contents
 

NAME

ras2xbm - convert gpsras bitmap images to XBM format  

SYNOPSIS

ras2xbm [-rot deg] [-inv n] rasfile  

DESCRIPTION

Ras2xbm converts the gpsras format bitmap image in the given rasfile (as produced by sdump or hpgl2ras) into an XBM format bitmap image. The XBM image is sent to the standard output. If no rasfile 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 xv image viewer, or xbmtopbm(1) and other utilities in the netpbm package.

If the -rot option is given, the image is rotated by the specified number of degrees, rounded to the closest 90 degree increment.

If the -inv option is given with an n of 0, then ras2xbm 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 gpsras image. 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.  

SEE ALSO

sdump(1), emuhpgl(1), gpsras(5), xbmtopbm(1)
 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 20:21:28 GMT, November 21, 2017
Copyright © G. R. Detillieux, Spinal Cord Research Centre, The University of Manitoba.