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






      Plot text on a 24-bit image without using X windows.


Calling Sequence

      img2 = img_text(img1,x,y,txt)


      img1 = Original image. in
      x,y = Text position. in
      txt = Text. in

Keyword Parameters


        CHARSIZE=csz Text size (def=!p.charsize).
        ORIENTATION=ang Text angle (deg, def=0).
        ALIGNMENT=align Text alignment (def=0.).
        COLOR=clr Text color.
          May also be a 3 element array: [R,G,B].
        CHARTHICK=cthk Text Thickness (def=!p.charthick).
        /DEVICE, /DATA (def), /NORMALIZED Coordinates to use.
        /ANTIALIASED means do antialiasing. A bit slower.
        ERROR=err Error flag: 0=ok.


      img2 = returned image. out

Common Blocks


      Note: Arrays are allowed for x,y,txt,csz, ang, and
          align. clr and cthk must be scalars.
        Uses Z buffer, save a copy before if using Z.

Modification History

      R. Sterner, 2002 Jul 12
      R. Sterner, 2002 Jul 24 --- Allowed size and angle to be arrays.
      R. Sterner, 2002 Jul 25 --- Allowed alignment to be an array.
      R. Sterner, 2010 May 12 --- Converted arrays from () to [].
  Copyright (C) 2002, 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.

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