Changeset 163 for trunk/SRC/Picture


Ignore:
Timestamp:
08/29/06 14:59:46 (18 years ago)
Author:
navarro
Message:

header improvements : type of parameters and keywords, default values, spell checking + idldoc assistant (IDL online_help)

Location:
trunk/SRC/Picture
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Picture/image_viewer.pro

    r157 r163  
    3131;_ 
    3232 
    33 PRO IMAGE_VIEWER_OPEN_FILES,event 
     33PRO image_viewer_open_files,event 
    3434;THIS PROCEDURE IS CALLED WHEN A USER SELECTS "File > Open Picture Files" FROM THE MAIN MENU 
    3535;error handling: 
     
    115115; @param event {in}{required} 
    116116;- 
    117 PRO IMAGE_VIEWER_OPEN_FOLDER,event 
     117PRO image_viewer_open_folder,event 
    118118;THIS PROCEDURE IS CALLED WHEN A USER SELECTS "File > Open All In Folder" FROM THE MAIN MENU 
    119119;error handling: 
     
    200200; @param event {in}{required} 
    201201;- 
    202 PRO IMAGE_VIEWER_CANCEL,event 
     202PRO image_viewer_cancel,event 
    203203;obtain state structure for top-level-base from its UVALUE: 
    204204; 
     
    216216; @param event {in}{required} 
    217217;- 
    218 PRO IMAGE_VIEWER_TIMER,event 
     218PRO image_viewer_timer,event 
    219219;obtain state structure for top-level-base from its UVALUE: 
    220220; 
     
    891891; @param event {in}{required} 
    892892;- 
    893 PRO IMAGE_VIEWER_EXIT,event 
     893PRO image_viewer_exit,event 
    894894;THIS PROCEDURE IS CALLED WHEN A USER SELECTS "File > Exit" FROM THE MAIN MENU 
    895895;terminate the program by destroying the top-level-base (widgetID always stored in event.top): 
     
    906906; @param event {in}{required} 
    907907;- 
    908 PRO IMAGE_VIEWER_HELP,event 
     908PRO image_viewer_help,event 
    909909;THIS PROCEDURE IS CALLED WHEN A USER SELECTS "Help > Help on IMAGE_VIEWER" 
    910910;FROM THE MAIN MENU 
     
    928928; @param event {in}{required} 
    929929;- 
    930 PRO IMAGE_VIEWER_THUMBS,event 
     930PRO image_viewer_thumbs,event 
    931931;THIS PROCEDURE IS CALLED WHEN A USER CLICKS ON ONE OF THE THUMBNAIL PICTURES 
    932932;error handling: 
     
    978978; @param widgetID {in}{required} 
    979979;- 
    980 PRO IMAGE_VIEWER_CLEANUP,widgetID 
     980PRO image_viewer_cleanup,widgetID 
    981981;THIS PROCEDURE IS CALLED WHEN THE PROGRAM IS TERMINATED AND XMANAGER REGISTERS A CLEANUP: 
    982982;obtain state structure for top-level-base from its uvalue: 
     
    10091009; @param event {in}{required} 
    10101010;- 
    1011 PRO IMAGE_VIEWER_EVENT,event 
     1011PRO image_viewer_event,event 
    10121012;THIS PROCEDURE IS CALLED WHEN A USER RESIZES THE TOP-LEVEL BASE 
    10131013;error handling: 
     
    10321032 
    10331033;********************************************************************************************* 
    1034 PRO IMAGE_VIEWER 
     1034PRO image_viewer 
    10351035;error handling: 
    10361036; 
  • trunk/SRC/Picture/imdisp.pro

    r157 r163  
    33; @hidden 
    44;- 
    5 FUNCTION IMDISP_GETPOS, ASPECT, POSITION=POSITION, MARGIN=MARGIN 
     5FUNCTION imdisp_getpos, ASPECT, POSITION=POSITION, MARGIN=MARGIN 
    66; 
    77  compile_opt idl2, strictarrsubs 
     
    5353; @hidden 
    5454;- 
    55 FUNCTION IMDISP_IMSCALE, IMAGE, RANGE=RANGE, BOTTOM=BOTTOM, NCOLORS=NCOLORS, $ 
     55FUNCTION imdisp_imscale, IMAGE, RANGE=RANGE, BOTTOM=BOTTOM, NCOLORS=NCOLORS, $ 
    5656  NEGATIVE=NEGATIVE 
    5757; 
     
    8787; @hidden 
    8888;- 
    89 FUNCTION IMDISP_IMREGRID, DATA, NX, NY, INTERP=INTERP 
     89FUNCTION imdisp_imregrid, DATA, NX, NY, INTERP=INTERP 
    9090; 
    9191  compile_opt idl2, strictarrsubs 
     
    131131; @hidden 
    132132;- 
    133 PRO IMDISP_IMSIZE, IMAGE, X0, Y0, XSIZE, YSIZE, ASPECT=ASPECT, $ 
     133PRO imdisp_imsize, IMAGE, X0, Y0, XSIZE, YSIZE, ASPECT=ASPECT, $ 
    134134  POSITION=POSITION, MARGIN=MARGIN 
    135135; 
     
    223223; [3, NX, NY], [NX, 3, NY], or [NX, NY, 3] form. 
    224224; 
    225 ; @keyword RANGE 
     225; @keyword RANGE {type=vector}{default=min and max array values} 
    226226; For Pseudo Color images only, a vector with two elements 
    227227; specifying the minimum and maximum values of the image 
    228228; array to be considered when the image is byte-scaled 
    229 ; (default is minimum and maximum array values). 
    230229; This keyword is ignored for True Color images, 
    231230; or if the NOSCALE keyword is set. 
    232231; 
    233 ; @keyword BOTTOM 
     232; @keyword BOTTOM {default=0} 
    234233; 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. 
    237235; This keyword is ignored if the NOSCALE keyword is set. 
    238236; 
    239 ; @keyword NCOLORS 
     237; @keyword NCOLORS {default=!D.TABLE_SIZE - BOTTOM} 
    240238; Number of colors in the color table to be used 
    241239; for the byte-scaled image 
    242 ; (default is !D.TABLE_SIZE - BOTTOM). 
    243240; This keyword is ignored if the NOSCALE keyword is set. 
    244241; 
    245 ; @keyword MARGIN 
     242; @keyword MARGIN {default=0.1 or 0.025 if !P.MULTI is set to display multiple images} 
    246243; A scalar value specifying the margin to be maintained 
    247244; 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} 
    252247; If set, the resized image will be interpolated using 
    253248; bilinear interpolation 
    254 ; (default is nearest neighbor sampling). 
    255 ; 
    256 ; @keyword DITHER 
     249; 
     250; @keyword DITHER {default=no dithering} 
    257251; If set, true color images will be dithered when displayed 
    258252; on an 8-bit graphics device 
    259 ; (default is no dithering). 
    260 ; 
    261 ; @keyword ASPECT 
     253; 
     254; @keyword ASPECT {default=maintain native aspect ratio} 
    262255; A scalar value specifying the aspect ratio (height/width) 
    263256; for the displayed image 
    264 ; (default is to maintain native aspect ratio). 
    265257; 
    266258; @keyword POSITION {default= [0.0,0.0,1.0,1.0]} 
     
    275267; actually used to display the image. 
    276268; 
    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} 
    282273; 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} 
    286276; If set, the image is displayed from the top down 
    287 ; (default is to display the image from the bottom up). 
    288277; Note that the system variable !ORDER is always ignored. 
    289278; 
    290 ; @keyword USEPOS 
     279; @keyword USEPOS {default=To honor ASPECT and MARGIN when POSITION vector is supplied} 
    291280; 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. 
    295282; 
    296283; @keyword CHANNEL 
     
    496483;- 
    497484;------------------------------------------------------------------------------- 
    498 PRO IMDISP, IMAGE, RANGE=RANGE, BOTTOM=BOTTOM, NCOLORS=NCOLORS, $ 
     485PRO imdisp, IMAGE, RANGE=RANGE, BOTTOM=BOTTOM, NCOLORS=NCOLORS, $ 
    499486  MARGIN=MARGIN, INTERP=INTERP, DITHER=DITHER, ASPECT=ASPECT, $ 
    500487  POSITION=POSITION, OUT_POS=OUT_POS, NOSCALE=NOSCALE, NORESIZE=NORESIZE, $ 
  • trunk/SRC/Picture/saveimage.pro

    r136 r163  
    1717; @categories Input/Output. 
    1818; 
    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 
    2121; 
    2222; @keyword BMP 
     
    3535; Set this keyword to create TIFF format (24-bit true color). 
    3636; 
    37 ; @keyword QUALITY 
     37; @keyword QUALITY {default=75} 
    3838; If set to a named variable, specifies the quality for 
    39 ; JPEG output (default 75). Ranges from 0 ("terrible") to 
     39; JPEG output. Ranges from 0 ("terrible") to 
    4040; 100 ("excellent"). Smaller quality values yield higher 
    4141; compression ratios and smaller output files. 
    4242; 
    43 ; @keyword DITHER 
     43; @keyword DITHER {default=no dithering} 
    4444; 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) 
    4848; 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. 
    5655; 
    5756; @restrictions 
     
    9190; 
    9291;- 
    93 PRO SAVEIMAGE, FILE, BMP=BMP, PNG=PNG, PICT=PICT, JPEG=JPEG, TIFF=TIFF, $ 
     92PRO saveimage, FILE, BMP=BMP, PNG=PNG, PICT=PICT, JPEG=JPEG, TIFF=TIFF, $ 
    9493  QUALITY=QUALITY, DITHER=DITHER, CUBE=CUBE, QUIET=QUIET, MULTIPLE = multiple 
    9594; 
  • trunk/SRC/Picture/showimage.pro

    r136 r163  
    1919; Name of the output file (format is identified automatically). 
    2020; 
    21 ; @keyword DITHER 
     21; @keyword DITHER {default=no dithering} 
    2222; 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. 
    2424; 
    2525; @keyword CURRENT 
     
    5656; 
    5757;- 
    58 PRO SHOWIMAGE, FILE, DITHER=DITHER, CURRENT=CURRENT 
     58PRO showimage, FILE, DITHER=DITHER, CURRENT=CURRENT 
    5959; 
    6060  compile_opt idl2, strictarrsubs 
Note: See TracChangeset for help on using the changeset viewer.