Format Description -------------------------------------------------------------------- bmp Microsoft Windows bitmap image file cur Microsoft Windows cursor image file eps Adobe Encapsulated PostScript file gif Compuserve Graphics image file hdf Hierarchical Data File ico Microsoft Windows icon image file icon Sun Icon and Cursor file iff Sun TAAC Image File Format mpnt Apple Macintosh MacPaint file pbm PBM Portable Bit Map file pcx ZSoft IBM PC Paintbrush file pgm PBM Portable Gray Map file pic PIXAR picture file pict Apple Macintosh QuickDraw/PICT file pix Alias image file ppm PBM Portable Pixel Map file pnm PBM Portable aNy Map file ps Adobe PostScript file ras Sun Rasterfile rgb SGI RGB image file rla Wavefront raster image file rle Utah Run length encoded image file synu SDSC Synu image file tga Truevision Targa image file tiff Tagged image file viff Khoros Visualization image file x AVS X image file xbm X11 bitmap file xwd X Window System window dump image file
The SDSC Image Library & Tools are available via anonynmous ftp from sdsc.edu in the /pub/sdsc/graphics/imtools/<platform> directory. If you wish to recompile this module, you will need to retrieve both the imtools_v2.1.[tar|cpio].Z and libsdsc_v2.1.[tar|cpio].Z distributions.
ACKNOWLEDGEMENT: Thanks goes to Drew Whitehouse of the Austrailian National University Supercomputing Facility (drw900@anusf.anu.edu.au) for the help given me on this my first attempt in writing a module.
Port: Input
Type: Lattice
Constraints: 2-D.
3-vector.
byte.
uniform.
Lattice containing image.
Port: filename
Type: File Browser
The name of the image file to create.
Port: format
Type: Text
The desired format of the output file (see table above).
Port: Snap?
Type: Button
This button behave in the same manner as the "Snap?" button
in the DisplayImg module. To use, wire the "Snap? -- parameter"
output port of ExportImage to the "Snap -- parameter" input port of
Render. Then, wire the "Snapshot -- Lattice" output port of Render
to the "Input -- Lattice" input port of ExportImage.
Please note that the "Render display should not be obscured during screen capture." (direct quote from the manual page for Render)
Port: Compression Type
Type: Option Menu
Menu Item: None
Menu Item: Run-Length Encode
Menu Item: Lempel-Ziv Welch
Menu Item: Apple PackBits
Used to specify the output compression type. Currently, the
following are supported:
None Run-Length Encoding Lempel-Ziv Welsh Encoding Apple PackBits
Port: Interlace Mode
Type: Option Menu
Menu Item: No Interlace
Menu Item: Scanline Interlace
Menu Item: Plane Interlace
Used to specify the output interlace mode. Currently, the
following are supported:
No Interlace Scanline Interlace Plane Interlace
imformats -long [-<file format>]
to get a summary of the file format(s) and its/their supported compression and interlace modes (if any).
Due to the limitations on the Option Menu widget, you must know the image format code. Hopefully, Explorer 2.0 will provide a suitable widget that can hold the > 30 file format names.