external/CDAWlib/
write_mgif.pro
Routines
top source write_mgif
write_mgif, FILE, IMG, R, G, B, CLOSE=CLOSE, loop=loop, delay=delay
NAME: WRITE_MGIF PURPOSE: Write an IDL image and color table vectors to a GIF (graphics interchange format) file. CATEGORY: CALLING SEQUENCE: INPUTS: Image: The 2D array to be output. OPTIONAL INPUT PARAMETERS: R, G, B: The Red, Green, and Blue color vectors to be written with Image. Keyword Inputs: CLOSE = if set, closes any open file if the MULTIPLE images per file mode was used. If this keyword is present, nothing is written, and all other parameters are ignored. OUTPUTS: Writes files containing multiple images. Each call to WRITE_GIF writes the next image, with the file remaining open between calls. The File parameter is ignored, but must be supplied, after the first call. When writing the 2nd and subsequent images, R, G, and B are ignored. All images written to a file must be the same size. If R, G, B values are not provided, the last color table established using LOADCT is saved. The table is padded to 256 entries. If LOADCT has never been called, we call it with the gray scale entry. COMMON BLOCKS: COLORS SIDE EFFECTS: If R, G, and B aren't supplied and LOADCT hasn't been called yet, this routine uses LOADCT to load the B/W tables. COMMON BLOCKS: WRITE_GIF_COMMON. RESTRICTIONS: This routine only writes 8-bit deep GIF files of the standard type: (non-interlaced, global colormap, 1 image, no local colormap) The Graphics Interchange Format(c) is the Copyright property of CompuServ Incorporated. GIF(sm) is a Service Mark property of CompuServ Incorporated. MODIFICATION HISTORY: Written 9 June 1992, JWG. Added MULTIPLE and CLOSE, Aug, 1996. Updated 9 December 1999, Eduardo Iturrate If MULTIPLE GIF is created, it will loop 65535 times (the available maximum).
Parameters
- FILE
- IMG
- R
- G
- B
Keywords
- CLOSE
- loop
- delay
File attributes
Modification date: | Thu Feb 13 16:41:56 2014 |
Lines: | 84 |