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

Home » Public Forums » archive » Animation
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: animation [message #40602 is a reply to message #9821] Mon, 23 August 2004 10:23 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mary T writes:

> I would like to animage the images that I get as an output in IDL
> windows. I saw an example in "IDL programming techniques" by Dr.
> Fanning (2 edition,page 105). However, from my understanding, this
> example is for images that are in a database called "head". My
> question is...how can I modify it, so that the images that I have in
> the output windows, be included in this code? I guess I have to save
> these output images first...in what format showld I do this?
>
> Kind regards,
> Mary
>
>
>
> XInterAnimate, Set=[800,800,50],/Showload
> yellow=GetColor('yellow',!D.Table_Size-2)
> LoadCT,3,Ncolors=!D.Table_Size-2
> For j=0,50 DO BEGIN
> TVImage, BytScl(head[*,*,j],Top=!D.Table_Size-3)
> XYOuts,0.1,0.1,/Normal,StrTrim(j,2),Color=yellow
> XInteranimate,Frame=j,Window=!D.Window
> ENDFOR
> XInteranimate,50
> end

In the FOR loop above, take out the TVIMAGE command
and substitute whatever command or commands you use
to put something into the display window. Whatever
you put into the window will be animated.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Bug with object graphics, app_scroll and the mouse in 6.1 under Windows.
Next Topic: xinteranimate with PLOTS and FLOW3 output

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

Current Time: Sun Oct 12 01:30:28 PDT 2025

Total time taken to generate the page: 6.80003 seconds