Changeset 133 for trunk/SRC/Picture/saveimage.pro
- Timestamp:
- 07/07/06 11:57:27 (18 years ago)
- Location:
- trunk/SRC/Picture
- Files:
-
- 1 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Picture/saveimage.pro
r132 r133 1 PRO SAVEIMAGE, FILE, BMP=BMP, PNG=PNG, PICT=PICT, JPEG=JPEG, TIFF=TIFF, $2 QUALITY=QUALITY, DITHER=DITHER, CUBE=CUBE, QUIET=QUIET, MULTIPLE = multiple3 ;4 compile_opt idl2, strictarrsubs5 ;6 7 1 ;+ 8 ; NAME: 9 ; SAVEIMAGE 10 ; 11 ; PURPOSE: 12 ; Save the current graphics window to an output file (GIF by default). 2 ; 3 ; @file_comments 4 ; Save the current graphics window to an output file (GIF by default). 13 5 ; 14 6 ; The output formats supported are: … … 23 15 ; 8-bit or 24-bit output files are done automatically. 24 16 ; 25 ; CATEGORY: 26 ; Input/Output. 27 ; 28 ; CALLING SEQUENCE: 29 ; SAVEIMAGE, FILE 30 ; 31 ; INPUTS: 32 ; FILE Name of the output file (GIF format by default). 33 ; 34 ; OPTIONAL INPUTS: 35 ; None. 36 ; 37 ; KEYWORD PARAMETERS: 38 ; BMP Set this keyword to create BMP format (8-bit with color table). 39 ; PNG Set this keyword to create PNG format (8-bit with color table). 40 ; PICT Set this keyword to create PICT format (8-bit with color table). 41 ; JPEG Set this keyword to create JPEG format (24-bit true color). 42 ; TIFF Set this keyword to create TIFF format (24-bit true color). 43 ; QUALITY If set to a named variable, specifies the quality for 17 ; @categories Input/Output. 18 ; 19 ; @param FILE {in}{required} Name of the output file (GIF format by default). 20 ; 21 ; @keyword BMP Set this keyword to create BMP format (8-bit with color table). 22 ; 23 ; @keyword PNG Set this keyword to create PNG format (8-bit with color table). 24 ; 25 ; @keyword PICT Set this keyword to create PICT format (8-bit with color table). 26 ; 27 ; @keyword JPEG Set this keyword to create JPEG format (24-bit true color). 28 ; 29 ; @keyword TIFF Set this keyword to create TIFF format (24-bit true color). 30 ; 31 ; @keyword QUALITY If set to a named variable, specifies the quality for 44 32 ; JPEG output (default 75). Ranges from 0 ("terrible") to 45 33 ; 100 ("excellent"). Smaller quality values yield higher 46 34 ; compression ratios and smaller output files. 47 ; DITHER If set, dither the output image when creating 8-bit output 35 ; 36 ;@keyword DITHER If set, dither the output image when creating 8-bit output 48 37 ; which is read from a 24-bit display (default is no dithering). 49 ; CUBE If set, use the color cube method to quantize colors when 38 ; 39 ; @keyword CUBE If set, use the color cube method to quantize colors when 50 40 ; creating 8-bit output which is read from a 24-bit display 51 41 ; (default is to use the statistical method). This may improve 52 42 ; the accuracy of colors in the output image, especially white. 53 ; 43 ; @keyword QUIET Set this keyword to suppress the information message 54 44 ; (default is to print an information message). 55 ; MULTIPLE to write multiple gif image 56 ; 57 ; OUTPUTS: 58 ; None. 59 ; 60 ; OPTIONAL OUTPUTS: 61 ; None 62 ; 63 ; COMMON BLOCKS: 64 ; None 65 ; 66 ; SIDE EFFECTS: 67 ; The output file is overwritten if it exists. 68 ; 69 ; RESTRICTIONS: 70 ; Requires IDL 5.0 or higher (square bracket array syntax). 71 ; 72 ; EXAMPLE: 45 ; @keyword MULTIPLE to write multiple gif image. 46 ; 47 ; @restrictions The output file is overwritten if it exists. 48 ; 49 ; 50 ; @restrictions requires IDL 5.0 or higher (square bracket array syntax). 51 ; 52 ; @examples 73 53 ; 74 54 ;openr, lun, filepath('hurric.dat', subdir='examples/data'), /get_lun … … 80 60 ;saveimage, 'hurric.gif' 81 61 ; 82 ; MODIFICATION HISTORY: 83 ; Liam.Gumley@ssec.wisc.edu 62 ; @history Liam.Gumley@ssec.wisc.edu 84 63 ; http://cimss.ssec.wisc.edu/~gumley 85 ; $Id$86 ;87 ; Copyright (C) 1999 Liam E. Gumley88 64 ; 89 65 ; This program is free software; you can redistribute it and/or … … 100 76 ; along with this program; if not, write to the Free Software 101 77 ; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 78 ; 79 ; @version $Id$ 80 ; 102 81 ;- 82 PRO SAVEIMAGE, FILE, BMP=BMP, PNG=PNG, PICT=PICT, JPEG=JPEG, TIFF=TIFF, $ 83 QUALITY=QUALITY, DITHER=DITHER, CUBE=CUBE, QUIET=QUIET, MULTIPLE = multiple 84 ; 85 compile_opt idl2, strictarrsubs 86 ; 103 87 104 88 rcs_id = '$Id$'
Note: See TracChangeset
for help on using the changeset viewer.