home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
swCHIP 1991 January
/
swCHIP_95-1.bin
/
demo
/
wit4711
/
lib
/
help
/
io
/
wit2pbm.
/
wit2pbm.bin
Wrap
Text File
|
1995-12-09
|
1KB
|
22 lines
OPERATOR
wit2pbm --- writes a WiT image to a PBM file
DESCRIPTION% %The wit2pbm operator writes a portable bit-mapped (PBM) %data file
corresponding to the WiT image received at the input port. %Bit-mapped (PBM),
greyscale (PGM) or color (PPM) data files may be read. %Additionally, image
data can be written in either ASCII text format %or the more condense raw
format. %PBM file types are denoted in the first line of the file. The
codes %P1 through P6 correspond to bit-mapped/ASCII, greyscale/ASCII,
%color/ASCII, bit-mapped/raw, greyscale/raw and color/raw, respectively. %Each
such PBM file is organized in row/column order, with the dimensions %of the
image being specified on the second row of the file. %All output files can
be read using the pbm2wit operator. %The filename parameter specifies %the name
of the file which will receive the image data. %The dataStorage parameter
specifies whether the image will be %output in either ASCII or raw format.
The bitmap format specifies %whether the image will be output as a bit-mapped
image, or as either a %greyscale or color image, depending upon the content.
If output as a %bitmapped image, the input image is rasterized such that all
non-zero %input pixels are set off and all zero value pixels are set on.