home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
swCHIP 1991 January
/
swCHIP_95-1.bin
/
demo
/
wit4711
/
lib
/
help
/
io
/
wrimage.
/
wrimage.bin
Wrap
Text File
|
1995-12-09
|
2KB
|
37 lines
OPERATOR
wrImage --- write a WiT image object in a common format
DESCRIPTION
The wrImage operator takes a WiT image, converts it to a file of a common
image format and writes it to disk given a file name specified by the fn
parameter. The object directory is used as the directory to write the file.
The type parameter specifies the image format. Currently the following formats
are supported:
GIF - Graphics Interchange Format (8-bit)
PCX - PC PaintBrush (8-bit)
PBM - Portable Bitmap format (PBM, PGM, PPM)
XBM - X Bitmap Format
TIFF - Tag Image File Format
The dataStorage and bitmap options are only used for PBM formats and will be
explained below.
For GIF and PCX formats, wrImage does not support 16-bit images. The operator
converts 16-bit images to 8-bit images before writing to disk.
For PBM formats, wrImage converts a WiT image to bit-mapped (PBM), greyscale
(PGM) or color (PPM) types depending on the type of the WiT image imported.
You can specify raw bytes or ASCII text data storage format. If you choose
yes for the bitmap option, the operator wil convert the imported WiT image to
a bit-mapped format by converting all non-zero pixels to off and all zero
pixels to on no matter what the WiT image type is.
For XBM formats, wrImage converts a WiT image to a bitmap by setting all
non-zero pixels to 0 and all zero pixels to 1 and writes it to disk.
Color is not supported.