animation [message #40603] |
Mon, 23 August 2004 10:20 |
mary2747102
Messages: 8 Registered: August 2004
|
Junior Member |
|
|
Hi!
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
|
|
|