comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » ? - Putting text on TV output
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: ? - Putting text on TV output [message #6673 is a reply to message #6671] Tue, 30 July 1996 00:00 Go to previous message
Robert.M.Candey is currently offline  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
[Message index]
 
Read Message
Read Message
Previous Topic: problem with shade_volume
Next Topic: YUV file format

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 06:26:12 PDT 2025

Total time taken to generate the page: 1.28106 seconds