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

Home » Public Forums » archive » Re: How-to? color png
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: How-to? color png [message #27663 is a reply to message #27661] Mon, 29 October 2001 13:41 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Bernard K. (bknaepen@'skip'mac.com) writes:

> I would like to ouput the result of a shade_surf graphic to a png file.
> Here is what I tried.
>
> 1)window, 1, xsize=600, ysize=400
> 2)data=findgen(600,400)
> 3) DEVICE, RETAIN=2, DECOMPOSED=0
> 4) xloadct to choose the color table BLUE/WHITE;
> 5) shade_surf, spec2d
> 6) data=tvrd()
> 7) write_png, 'image.png', data
>
> Although the screen output is displayed in color with the BLUE/WHITE
> table, the file 'image.png' only contains the axis but no colored
> surface.
>
> Does anybody know what I am doing wrong?

You are not using TVREAD. :-)

http://www.dfanning.com/programs/tvread.pro

IDL> image = TVRead(/PNG)

> ps: I am using IDL 5.5 on a Macintosh (OS X 10.1 in classic mode).

Oh, oh. All bets are off then. :-)

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Resolution
Next Topic: Re: IDL .SAV cross-platform problem

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

Current Time: Wed Oct 08 19:20:16 PDT 2025

Total time taken to generate the page: 0.00425 seconds