home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
swCHIP 1991 January
/
swCHIP_95-1.bin
/
demo
/
wit4711
/
lib
/
help
/
io
/
rdimage.
/
rdimage.bin
Wrap
Text File
|
1995-12-09
|
2KB
|
39 lines
OPERATOR
rdImage --- read an image file into WiT
DESCRIPTION
The rdImage operator reads from disk an image file of some common image
format and converts it into a WiT image as the output of the operator. The
fn parameter is the name of the file. The objpath search path (from .witrc
file) is used to search for the specified 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)
SUN - Sun Raster File Format
XBM - X Bitmap Format
TIFF - Tag Image File Format
Besides these image format types, you can choose Auto to let the operator
detect the image format type.
For GIF and PCX formats, rdImage converts an image to a WiT RGB image if
the image file contains color, otherwise a greyscale image is converted to
an 8-bit greyscale WiT image.
For PBM formats, rdImage supports bit-mapped (PBM), greyscale (PGM), and color
(PPM) types. Additionally, the operator interprets both ASCII text and raw
formats.
For SUN formats, both greyscale and color images (both pseudo or true color)
are supported. forcebw option causes pseudo color images to be converted to
greyscale. The verbose option prints out identifying information to stdout .
For XBM formats, the operator ignores the hotspot location in an XBM file.
Color is not supported.