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 #91090 is a reply to message #91088] Wed, 03 June 2015 03:17 Go to previous messageGo to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Wednesday, June 3, 2015 at 11:55:35 AM UTC+2, g.na...@gmail.com wrote:
> 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.

Did you look at the /MULTIPLE option in write_gif?

http://www.exelisvis.com/docs/WRITE_GIF.html

This should do what you're looking for.

cheers,
Helder
[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 19:35:02 PDT 2025

Total time taken to generate the page: 0.00553 seconds