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

Home » Public Forums » archive » help with cgDrawVectors in write_gif procedure
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: help with cgDrawVectors in write_gif procedure [message #91088 is a reply to message #91084] Wed, 03 June 2015 02:55 Go to previous messageGo to previous message
g.nacarts is currently offline  g.nacarts
Messages: 148
Registered: November 2013
Senior Member
Well, I typed the following and I ended up with 100 different gif files (i.e. each image in a separate gif). What I want is to play as a movie in one gif file.

for i=0L,N-1 do begin
cgDisplay, 500, 550
cgimage, Reform(Reform(Image[i,*,*])[i,*,*])
cgDrawVectors, reform(VX[i,*,*]),reform(VY[i,*,*]), pos_x, pos_y,VECCOLORS='yellow', /ORDERED, overplot = 1
void = cgSnapshot(/GIF, Filename='C:\Users\Desktop\Vectors('+string(i,format='(i3.3) ')+','+string(level)+','+strtrim(iter)+')', /NoDialog)
endfor

I added the level and iter because is looping over those two loops as well.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Vertical text orientation?
Next Topic: Pure IDL interface for video cameras -- linux only

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

Current Time: Wed Oct 08 18:08:06 PDT 2025

Total time taken to generate the page: 0.00412 seconds