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

Home » Public Forums » archive » How-to? color png
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
How-to? color png [message #27665] Mon, 29 October 2001 13:11
Bernard K. is currently offline  Bernard K.
Messages: 11
Registered: October 2001
Junior Member
Hello,
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?

Thanks for any answer,

Bernard.

ps: I am using IDL 5.5 on a Macintosh (OS X 10.1 in classic mode).
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Simple bug in IDL 5.4 compiler under Win2000
Next Topic: Newbie question again - Marking region of interest

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

Current Time: Wed Oct 08 17:41:06 PDT 2025

Total time taken to generate the page: 0.00504 seconds