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

Home » Public Forums » archive » Re: Incomplete ouput PNG files.
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: Incomplete ouput PNG files. [message #78706 is a reply to message #78702] Wed, 14 December 2011 09:26 Go to previous messageGo to previous message
Mark Piper is currently offline  Mark Piper
Messages: 198
Registered: December 2009
Senior Member
On 12/14/2011 9:43 AM, alx wrote:
> Setting the BUFFER keyword actually solved the problem. I now
> understand what this keyword is useful to, a long lasting
> interrogation for me! Thanks Mark.
> alain.

Cool -- you're welcome! Another idea: since there's overhead in
creating/destroying NG windows, it may help to use the SetData method
for batching a series of plots:

data = list(of_images)
p = image(data[0], /buffer)
p.save, 'image0.png'

for i=1, data.count()-1 do begin
p.setdata, data[i]
p.save, 'image' + strtrim(i,2) + '.png'
endfor

p.close

mp
[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
Previous Topic: Window with Black Background
Next Topic: Re: Compare Coyote Graphics Output with Function Graphics Output

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

Current Time: Thu Oct 09 22:34:04 PDT 2025

Total time taken to generate the page: 0.24496 seconds