>  Docs Center  >  Libraries  >  JHU/APL/S1R  >  SCREENPNG






      Display a PNG image in a screen window.


Calling Sequence

      screenpng, [file], [px, py]


      file = name of PNG file. in
      px,py = optional screen xy position for current window.
        May give just px or both px,py, like TV command.

Keyword Parameters


        MAG=mag Magnification factor (def=1).
          May be a 2 element array: [magx,magy].
          Use a single mag factor when loading maps or plots.
        /REBIN change size using rebin (integer size factor).
        /PIXMAP use a pixmap window. convert_coord needs actual
          window size to handle conversions to/from /dev.
        /IWIN use an iwindow object for display.
        /NOSWIN Avoid scrolling window if possible.
        WINDOW=win Returned index of display window.
        INFO=info Returned embedded map scaling ingo if any.
        ERROR=err Returned error flag: 0=ok, 1=not displayed.


Common Blocks


      Notes: Prompts for file if called with no args.
        Trys to do a map_set_scale and a set_scale
        (assumes map scaling info is in the blue channel.)
        Can use a mag factor to scale up map.

Modification History

      R. Sterner, 2001 Mar 21
      R. Sterner, 2002 Jan 09 --- Allowed for 8-bit images.
      R. Sterner, 2002 Mar 04 --- Worked around v5.3 png bug.
      R. Sterner, 2002 Mar 14 --- Added MAG=mag keyword.
      R. Sterner, 2002 Apr 03 --- Still dealing with v5.3 png bug.
      R. Sterner, 2002 Apr 05 --- Added /PIXMAP option.
      R. Sterner, 2002 Oct 09 --- Made window fit screen.
      R. Sterner, 2003 Sep 24 --- Added /IWIN option.
      R. Sterner, 2004 Mar 11 --- Added /NOEXECUTE option.
      R. Sterner, 2004 Mar 11 --- Added /quiet on swindow call.
      R. Sterner, 2005 Jan 14 --- Dropped /noexecute code.
      R. Sterner, 2005 Jan 14 --- Passed mag factor to map_set_scale.
      R. Sterner, 2006 Mar 14 --- Added /NOSWIN.
      R. Sterner, 2006 Sep 25 --- Added mag to set_scale call.
      R. Sterner, 2007 Feb 09 --- Added posx,posy to work like tv.
      R. Sterner, 2010 May 10 --- Added /map_set.
      R. Sterner, 2010 May 10 --- Converted arrays from () to []
  Copyright (C) 2001, Johns Hopkins University/Applied Physics Laboratory
  This software may be used, copied, or redistributed as long as it is not
  sold and this copyright notice is reproduced on each copy made. This
  routine is provided as is without any express or implied warranties
  whatsoever. Other limitations apply as described in the file disclaimer.txt.

© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us