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 
Switch to threaded view of this topic Create a new topic Submit Reply
? - Putting text on TV output [message #6671] Tue, 30 July 1996 00:00
Michael Ochs is currently offline  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 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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: problem with shade_volume
Next Topic: YUV file format

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

Current Time: Wed Oct 08 19:53:06 PDT 2025

Total time taken to generate the page: 0.00579 seconds