? - Putting text on TV output [message #6671] |
Tue, 30 July 1996 00:00 |
Michael Ochs
Messages: 4 Registered: January 1996
|
Junior Member |
|
|
I am displaying a series of grey scale images, rotating through them
using the tv command. I would like to place the number of the image
displayed next to the greyscale image so that I know how far through
the series I am. Is this possible and if so, can anyone point me in
the right direction?
-- Michael Ochs
m_ochs@fccc.edu
|
|
|
Re: ? - Putting text on TV output [message #6673 is a reply to message #6671] |
Tue, 30 July 1996 00:00  |
Robert.M.Candey
Messages: 23 Registered: June 1995
|
Junior Member |
|
|
In article <31FE5F10.696F@fccc.edu>, m_ochs@fccc.edu wrote:
> I am displaying a series of grey scale images, rotating through them
> using the tv command. I would like to place the number of the image
> displayed next to the greyscale image so that I know how far through
> the series I am. Is this possible and if so, can anyone point me in
> the right direction?
>
> -- Michael Ochs
> m_ochs@fccc.edu
at top of program:
last = -1
xpos = 0.9 ; X position in normalized coordinates
ypos = 0.9 ; Y position in normalized coordinates
within your loop:
if last ne -1 then xyouts, xpos, ypos, string(last,format='(I3)'), $
color=!p.background ; this clears the previous number
tv, ...
xyouts, xpos, ypos, string(i,format='(I3)'), $
color=!p.color ; this draws the number i
last = i ; store number to clear next time
--
Robert.M.Candey@gsfc.nasa.gov
NASA Goddard Space Flight Center, Code 632
Greenbelt, MD 20771 USA 1-301-286-6707
|
|
|