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

IMG_FITPRINT

IMG_FITPRINT

Name


      IMG_FITPRINT

Purpose


      Add margin to fit an image to a print size.

Category


Calling Sequence


      img_fitprint, file, prnt

Inputs


      file = Name of image file (*.png or *.jpg). in
      prnt = print dimensions, like '11 x 14', or '16x20', ...

Keyword Parameters


Keywords


        /TOP place image at the top of the enlarged area (default).
        /BOTTOM place image at the bottom of the enlarged area.
        /LEFT place image at the left of the enlarged area.
        /RIGHT place image at the right of the enlarged area.
        /CENTER place image in the center of the enlarged area.
        COLOR=clr Color of the extra added area (def=white).
        BTHICK=bthk Thickness in pixels of added border (def=none).
        BCOLOR=bclr 24-bit color of added border (def=0=black).
        ERROR=err Error flag: 0=ok.

Outputs


Common Blocks


Notes


      Notes: Area is added to the image to make the shape fit
      a specified print size. The image will be saved as a JPEG
      file with something like _11x14 added at the end of the
      image file name to indicate the target print size.

Modification History


      R. Sterner, 2006 Sep 06
      R. Sterner, 2006 Dec 06 --- Added border.
      R. Sterner, 2010 May 12 --- Converted arrays from () to [].
  Copyright (C) 2006, 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