Changeset 163 for trunk/SRC/Picture
- Timestamp:
- 08/29/06 14:59:46 (18 years ago)
- Location:
- trunk/SRC/Picture
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Picture/image_viewer.pro
r157 r163 31 31 ;_ 32 32 33 PRO IMAGE_VIEWER_OPEN_FILES,event33 PRO image_viewer_open_files,event 34 34 ;THIS PROCEDURE IS CALLED WHEN A USER SELECTS "File > Open Picture Files" FROM THE MAIN MENU 35 35 ;error handling: … … 115 115 ; @param event {in}{required} 116 116 ;- 117 PRO IMAGE_VIEWER_OPEN_FOLDER,event117 PRO image_viewer_open_folder,event 118 118 ;THIS PROCEDURE IS CALLED WHEN A USER SELECTS "File > Open All In Folder" FROM THE MAIN MENU 119 119 ;error handling: … … 200 200 ; @param event {in}{required} 201 201 ;- 202 PRO IMAGE_VIEWER_CANCEL,event202 PRO image_viewer_cancel,event 203 203 ;obtain state structure for top-level-base from its UVALUE: 204 204 ; … … 216 216 ; @param event {in}{required} 217 217 ;- 218 PRO IMAGE_VIEWER_TIMER,event218 PRO image_viewer_timer,event 219 219 ;obtain state structure for top-level-base from its UVALUE: 220 220 ; … … 891 891 ; @param event {in}{required} 892 892 ;- 893 PRO IMAGE_VIEWER_EXIT,event893 PRO image_viewer_exit,event 894 894 ;THIS PROCEDURE IS CALLED WHEN A USER SELECTS "File > Exit" FROM THE MAIN MENU 895 895 ;terminate the program by destroying the top-level-base (widgetID always stored in event.top): … … 906 906 ; @param event {in}{required} 907 907 ;- 908 PRO IMAGE_VIEWER_HELP,event908 PRO image_viewer_help,event 909 909 ;THIS PROCEDURE IS CALLED WHEN A USER SELECTS "Help > Help on IMAGE_VIEWER" 910 910 ;FROM THE MAIN MENU … … 928 928 ; @param event {in}{required} 929 929 ;- 930 PRO IMAGE_VIEWER_THUMBS,event930 PRO image_viewer_thumbs,event 931 931 ;THIS PROCEDURE IS CALLED WHEN A USER CLICKS ON ONE OF THE THUMBNAIL PICTURES 932 932 ;error handling: … … 978 978 ; @param widgetID {in}{required} 979 979 ;- 980 PRO IMAGE_VIEWER_CLEANUP,widgetID980 PRO image_viewer_cleanup,widgetID 981 981 ;THIS PROCEDURE IS CALLED WHEN THE PROGRAM IS TERMINATED AND XMANAGER REGISTERS A CLEANUP: 982 982 ;obtain state structure for top-level-base from its uvalue: … … 1009 1009 ; @param event {in}{required} 1010 1010 ;- 1011 PRO IMAGE_VIEWER_EVENT,event1011 PRO image_viewer_event,event 1012 1012 ;THIS PROCEDURE IS CALLED WHEN A USER RESIZES THE TOP-LEVEL BASE 1013 1013 ;error handling: … … 1032 1032 1033 1033 ;********************************************************************************************* 1034 PRO IMAGE_VIEWER1034 PRO image_viewer 1035 1035 ;error handling: 1036 1036 ; -
trunk/SRC/Picture/imdisp.pro
r157 r163 3 3 ; @hidden 4 4 ;- 5 FUNCTION IMDISP_GETPOS, ASPECT, POSITION=POSITION, MARGIN=MARGIN5 FUNCTION imdisp_getpos, ASPECT, POSITION=POSITION, MARGIN=MARGIN 6 6 ; 7 7 compile_opt idl2, strictarrsubs … … 53 53 ; @hidden 54 54 ;- 55 FUNCTION IMDISP_IMSCALE, IMAGE, RANGE=RANGE, BOTTOM=BOTTOM, NCOLORS=NCOLORS, $55 FUNCTION imdisp_imscale, IMAGE, RANGE=RANGE, BOTTOM=BOTTOM, NCOLORS=NCOLORS, $ 56 56 NEGATIVE=NEGATIVE 57 57 ; … … 87 87 ; @hidden 88 88 ;- 89 FUNCTION IMDISP_IMREGRID, DATA, NX, NY, INTERP=INTERP89 FUNCTION imdisp_imregrid, DATA, NX, NY, INTERP=INTERP 90 90 ; 91 91 compile_opt idl2, strictarrsubs … … 131 131 ; @hidden 132 132 ;- 133 PRO IMDISP_IMSIZE, IMAGE, X0, Y0, XSIZE, YSIZE, ASPECT=ASPECT, $133 PRO imdisp_imsize, IMAGE, X0, Y0, XSIZE, YSIZE, ASPECT=ASPECT, $ 134 134 POSITION=POSITION, MARGIN=MARGIN 135 135 ; … … 223 223 ; [3, NX, NY], [NX, 3, NY], or [NX, NY, 3] form. 224 224 ; 225 ; @keyword RANGE 225 ; @keyword RANGE {type=vector}{default=min and max array values} 226 226 ; For Pseudo Color images only, a vector with two elements 227 227 ; specifying the minimum and maximum values of the image 228 228 ; array to be considered when the image is byte-scaled 229 ; (default is minimum and maximum array values).230 229 ; This keyword is ignored for True Color images, 231 230 ; or if the NOSCALE keyword is set. 232 231 ; 233 ; @keyword BOTTOM 232 ; @keyword BOTTOM {default=0} 234 233 ; Bottom value in the color table to be used 235 ; for the byte-scaled image 236 ; (default is 0). 234 ; for the byte-scaled image. 237 235 ; This keyword is ignored if the NOSCALE keyword is set. 238 236 ; 239 ; @keyword NCOLORS 237 ; @keyword NCOLORS {default=!D.TABLE_SIZE - BOTTOM} 240 238 ; Number of colors in the color table to be used 241 239 ; for the byte-scaled image 242 ; (default is !D.TABLE_SIZE - BOTTOM).243 240 ; This keyword is ignored if the NOSCALE keyword is set. 244 241 ; 245 ; @keyword MARGIN 242 ; @keyword MARGIN {default=0.1 or 0.025 if !P.MULTI is set to display multiple images} 246 243 ; A scalar value specifying the margin to be maintained 247 244 ; around the image in normal coordinates 248 ; (default is 0.1, or 0.025 if !P.MULTI is set to display 249 ; multiple images). 250 ; 251 ; @keyword INTERP 245 ; 246 ; @keyword INTERP {default=nearest neighbor sampling} 252 247 ; If set, the resized image will be interpolated using 253 248 ; bilinear interpolation 254 ; (default is nearest neighbor sampling). 255 ; 256 ; @keyword DITHER 249 ; 250 ; @keyword DITHER {default=no dithering} 257 251 ; If set, true color images will be dithered when displayed 258 252 ; on an 8-bit graphics device 259 ; (default is no dithering). 260 ; 261 ; @keyword ASPECT 253 ; 254 ; @keyword ASPECT {default=maintain native aspect ratio} 262 255 ; A scalar value specifying the aspect ratio (height/width) 263 256 ; for the displayed image 264 ; (default is to maintain native aspect ratio).265 257 ; 266 258 ; @keyword POSITION {default= [0.0,0.0,1.0,1.0]} … … 275 267 ; actually used to display the image. 276 268 ; 277 ; @keyword NOSCALE 278 ; If set, the image will not be byte-scaled 279 ; (default is to byte-scale the image). 280 ; 281 ; @keyword NORESIZE 269 ; @keyword NOSCALE {default=to byte-scale the image} 270 ; If set, the image will not be byte-scaled. 271 ; 272 ; @keyword NORESIZE {default=To resize the image to fit the display} 282 273 ; If set, the image will not be resized. 283 ; (default is to resize the image to fit the display). 284 ; 285 ; @keyword ORDER 274 ; 275 ; @keyword ORDER {default=To display the image from the bottom up} 286 276 ; If set, the image is displayed from the top down 287 ; (default is to display the image from the bottom up).288 277 ; Note that the system variable !ORDER is always ignored. 289 278 ; 290 ; @keyword USEPOS 279 ; @keyword USEPOS {default=To honor ASPECT and MARGIN when POSITION vector is supplied} 291 280 ; If set, the image will be sized to exactly fit a supplied 292 ; POSITION vector, over-riding ASPECT and MARGIN 293 ; (default is to honor ASPECT and MARGIN when a POSITION 294 ; vector is supplied). 281 ; POSITION vector, over-riding ASPECT and MARGIN. 295 282 ; 296 283 ; @keyword CHANNEL … … 496 483 ;- 497 484 ;------------------------------------------------------------------------------- 498 PRO IMDISP, IMAGE, RANGE=RANGE, BOTTOM=BOTTOM, NCOLORS=NCOLORS, $485 PRO imdisp, IMAGE, RANGE=RANGE, BOTTOM=BOTTOM, NCOLORS=NCOLORS, $ 499 486 MARGIN=MARGIN, INTERP=INTERP, DITHER=DITHER, ASPECT=ASPECT, $ 500 487 POSITION=POSITION, OUT_POS=OUT_POS, NOSCALE=NOSCALE, NORESIZE=NORESIZE, $ -
trunk/SRC/Picture/saveimage.pro
r136 r163 17 17 ; @categories Input/Output. 18 18 ; 19 ; @param FILE {in}{required} 20 ; Name of the output file (GIF format by default).19 ; @param FILE {in}{required}{default=format GIF} 20 ; Name of the output file 21 21 ; 22 22 ; @keyword BMP … … 35 35 ; Set this keyword to create TIFF format (24-bit true color). 36 36 ; 37 ; @keyword QUALITY 37 ; @keyword QUALITY {default=75} 38 38 ; If set to a named variable, specifies the quality for 39 ; JPEG output (default 75). Ranges from 0 ("terrible") to39 ; JPEG output. Ranges from 0 ("terrible") to 40 40 ; 100 ("excellent"). Smaller quality values yield higher 41 41 ; compression ratios and smaller output files. 42 42 ; 43 ; @keyword DITHER 43 ; @keyword DITHER {default=no dithering} 44 44 ; If set, dither the output image when creating 8-bit output 45 ; which is read from a 24-bit display (default is no dithering).46 ; 47 ; @keyword CUBE 45 ; which is read from a 24-bit display. 46 ; 47 ; @keyword CUBE {default=to use statistical method) 48 48 ; If set, use the color cube method to quantize colors when 49 ; creating 8-bit output which is read from a 24-bit display 50 ; (default is to use the statistical method). This may improve 51 ; the accuracy of colors in the output image, especially white. 52 ; 53 ; @keyword QUIET 54 ; Set this keyword to suppress the information message 55 ; (default is to print an information message). 49 ; creating 8-bit output which is read from a 24-bit display. 50 ; This may improve the accuracy of colors in the output image, 51 ; especially white. 52 ; 53 ; @keyword QUIET {default=to print an information message} 54 ; Set this keyword to suppress the information message. 56 55 ; 57 56 ; @restrictions … … 91 90 ; 92 91 ;- 93 PRO SAVEIMAGE, FILE, BMP=BMP, PNG=PNG, PICT=PICT, JPEG=JPEG, TIFF=TIFF, $92 PRO saveimage, FILE, BMP=BMP, PNG=PNG, PICT=PICT, JPEG=JPEG, TIFF=TIFF, $ 94 93 QUALITY=QUALITY, DITHER=DITHER, CUBE=CUBE, QUIET=QUIET, MULTIPLE = multiple 95 94 ; -
trunk/SRC/Picture/showimage.pro
r136 r163 19 19 ; Name of the output file (format is identified automatically). 20 20 ; 21 ; @keyword DITHER 21 ; @keyword DITHER {default=no dithering} 22 22 ; Set this keyword to dither the input image when displaying 23 ; 24-bit images on an 8-bit display (default is no dithering).23 ; 24-bit images on an 8-bit display. 24 24 ; 25 25 ; @keyword CURRENT … … 56 56 ; 57 57 ;- 58 PRO SHOWIMAGE, FILE, DITHER=DITHER, CURRENT=CURRENT58 PRO showimage, FILE, DITHER=DITHER, CURRENT=CURRENT 59 59 ; 60 60 compile_opt idl2, strictarrsubs
Note: See TracChangeset
for help on using the changeset viewer.