Ignore:
Timestamp:
05/11/06 12:35:53 (18 years ago)
Author:
smasson
Message:

debug + new xxx

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ToBeReviewed/IMAGE/showimage.pro

    r23 r69  
    1010;    The input formats supported are: 
    1111;    GIF   8-bit with color table, 
    12 ;    PNG   8-bit with color table, 
    1312;    BMP   8-bit with color table or 24-bit true-color, 
    1413;    PICT  8-bit with color table, 
     
    5857; MODIFICATION HISTORY: 
    5958; Liam.Gumley@ssec.wisc.edu 
     59; http://cimss.ssec.wisc.edu/~gumley 
    6060; $Id$ 
     61; 
     62; Copyright (C) 1999 Liam E. Gumley 
     63; 
     64; This program is free software; you can redistribute it and/or 
     65; modify it under the terms of the GNU General Public License 
     66; as published by the Free Software Foundation; either version 2 
     67; of the License, or (at your option) any later version. 
     68; 
     69; This program is distributed in the hope that it will be useful, 
     70; but WITHOUT ANY WARRANTY; without even the implied warranty of 
     71; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     72; GNU General Public License for more details. 
     73; 
     74; You should have received a copy of the GNU General Public License 
     75; along with this program; if not, write to the Free Software 
     76; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. 
    6177;- 
     78 
     79rcs_id = '$Id$' 
    6280 
    6381;------------------------------------------------------------------------------- 
     
    123141if result eq 0 then result = query_tiff(file, info) 
    124142if result eq 0 then result = query_jpeg(file, info) 
    125 if result eq 0 then result = query_png(file, info) 
    126143if result eq 0 then begin 
    127144  message, 'File format not recognized', /continue 
     
    138155 
    139156  'GIF' : read_gif, file, image, r, g, b 
    140  
    141   'PNG' : read_png, file, image, r, g, b 
    142157 
    143158  'BMP' : begin 
     
    205220 
    206221  device, get_screen_size=screen 
    207   if nx gt (0.95 * screen[0]) then begin 
    208     xsize = 0.85 * nx 
     222  screen_xsize = screen[0] 
     223  screen_ysize = screen[1] 
     224  if (nx gt screen_xsize) then begin 
     225    xsize = 0.9 * screen_xsize 
    209226    scroll = 1 
    210227  endif 
    211   if ny gt (0.95 * screen[1]) then begin 
    212     ysize = 0.85 * ny 
     228  if (ny gt screen_ysize) then begin 
     229    ysize = 0.9 * screen_ysize 
    213230    scroll = 1 
    214231  endif 
Note: See TracChangeset for help on using the changeset viewer.